RE: Trying to pass NetworkCredential to WebService
- From: lukezhan@xxxxxxxxxxxxxxxxxxxx ([MSFT])
- Date: Thu, 14 Jul 2005 02:59:15 GMT
Hello Marshall,
Did your Web service use Windows integrated authentication and disable
anonymous access? For such a web service, we need to pass a valid
credential to it. for example:
localhost.Service1 myProxy = new localhost.Service1();
myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
or
localhost.Service1 myProxy = new localhost.Service1();
myProxy.Credentials = new System.Net.NetworkCredential("domain\username",
"password", "");
for details, you can refer to:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q813834
Luke
.
- Follow-Ups:
- Re: Trying to pass NetworkCredential to WebService
- From: Marshall
- Re: Trying to pass NetworkCredential to WebService
- References:
- Trying to pass NetworkCredential to WebService
- From: Marshall
- Trying to pass NetworkCredential to WebService
- Prev by Date: using soap extension on client side
- Next by Date: Re: Trying to pass NetworkCredential to WebService
- Previous by thread: Trying to pass NetworkCredential to WebService
- Next by thread: Re: Trying to pass NetworkCredential to WebService
- Index(es):
Relevant Pages
|
Loading