السلام عليكــم ورحمـة الله وبركاتــة
ارجوا المساعدة عندي web Service حاطه على Server وعندي صفحات localHost بس المشكل وعملت References لل web Service بس المشكل تظهر error على هذا الشكل
error
<EM>The request failed with HTTP status 401: Unauthorized.</EM>
قمت بعمل طريقة برمجية :
sa.med.sfh.dev.HBOkp WS = new sa.med.sfh.dev.HBOkp();
WS.PreAuthenticate = true;
WS.Credentials = System.Net.CredentialCache.DefaultCredentials;
ارجوا المساعدة....................
وشكرا...............................