XML Web Service call errors with 401

Hello everyone. I am having difficulty discovering the issue here. I have a client application that is making calls to a WebService.

The code goes like so:

MyWebService obj = new MyWebService();

obj .PreAuthenticate = true;

obj.Url = sURL;

obj.Timeout = nTimeout;

obj.Credentials = System.Net.CredentialCache.DefaultCredentials;

Later on I attempt to execute a function. The client application is running on a tablet PC that is out in the field and logged in using cached credentials. When they attempt to browse to the web service they reach the page fine and are not presented with the login box for credentials. However, the application is receiving 401: Unauthorized. Please advise. TIA.




Answer this question

XML Web Service call errors with 401

  • XML Web Service call errors with 401