I have an ASP.NET web application in a Sharepoint 2007 window that calls a web service in SharePoint to retrieve the location of a document (specifically, the GetListItems method).
The service is used with the transferred credentials of a valid Sharepoint account with the corresponding permissions.
ListServiceWrapper listService = new ListServiceWrapper();
listService.Credentials = new NetworkCredential(spUserName, spPassword, spDomain);
listService.Url = ConfigurationManager.AppSettings.Get("rootSite") + "/_vti_bin/lists.asmx";
When a web application launches locally in my development window (I am a Sharepoint user in the same domain), the service call works fine. When deployed in the Sharepoint field, the application returns:
Request failed with HTTP status 401: Unauthorized.
- Sharepoint Sharepoint, . , Sharepoint Kerberos NTLM, . , . , NLTM?