M
mail747097
I'm trying to call a web service with a different user than the one I
have logged in with. I'm using the web server built into VS.NET 2005.
I have the following code to call the web service using a proxy class:
MyWebService webService = new MyWebService.MyClass();
webService.Credentials = new NetworkCredential("MyDomain\
\SomeOneElse", "HisPassword");
webService.UseDefaultCredentials = false;
webService.HelloWorld();
However if I in the web service HelloWorld() function check
User.Identity.Name I am stil getting "MyDomain\\Me" and not "MyDomain\
\SomeOneElse".
have logged in with. I'm using the web server built into VS.NET 2005.
I have the following code to call the web service using a proxy class:
MyWebService webService = new MyWebService.MyClass();
webService.Credentials = new NetworkCredential("MyDomain\
\SomeOneElse", "HisPassword");
webService.UseDefaultCredentials = false;
webService.HelloWorld();
However if I in the web service HelloWorld() function check
User.Identity.Name I am stil getting "MyDomain\\Me" and not "MyDomain\
\SomeOneElse".