Fails:
//Note: webserviceProxy inherits from SoapHttpClientProtocol //App Pool is running as a user with permissions to call the external webservice var webserviceProxy = new webServiceProxy(); webserviceProxy.PreAuthenticate = true; webserviceProxy.UseDefaultCredentials = true; var returnVal = webServiceProxy.DoSomething(); //Fails with 401, webserviceProxy.Credendials shows an empty username, pass, and domain
Works:
How can I make an external webservice call using an ASP.NET application pool identifier? There seems to be no way to convert System.Security.Principal.WindowsIdentity.GetCurrent() into what I can use for this call.
Thanks!
source share