I have created a web method “MyMethod”. In MyMethod, it calls worksite 8.2 web services SearchDocument method. The method is working fine in my local development environment, but not in the remote web server after I published my service to the server. I always the following error message:System.Net.WebException: The request failed with HTTP status 401: Unauthorized. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)…Please help!!!I used authentication mode="Windows", identity impersonate="true" And code in the method _wsWorkSite.Credentials = System.Net.CredentialCache.DefaultCredentials; _wsWorkSite.PreAuthenticate = true;
Thank you very much for your reply.I verified the points 3 and 4 but not sure about 1 and 2 in your list. What is DMS connection? In my development, my web service and client both in my local PC. In test, my web service is in remote web server: testServer, web client is in my PC.The worksite 8.2 web services are in a different web server: worksiteServerWhat may be dataoptions.xml contain? What may be MY_DMS_NAME?