code_junkie

Sharepoint 2007 NTLM issue with ASP.NET Web App hosted on Sharepoint server

Nov 12th, 2011
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. ListServiceWrapper listService = new ListServiceWrapper();
  2.  
  3. /*Pass credentials to service call object*/
  4. listService.Credentials = new NetworkCredential(spUserName, spPassword, spDomain);
  5.  
  6. /*Set the Url property of the service for the path to a subsite.*/
  7. listService.Url = ConfigurationManager.AppSettings.Get("rootSite") + "/_vti_bin/lists.asmx";
Add Comment
Please, Sign In to add comment