Reputation: 4264
I need to access a sharepoint application from my desktop application (written in C#). How should I pass credentials and verify authentication?
Upvotes: 0
Views: 4580
Reputation: 5283
1.Add WebService reference(Name : SourceLists) to the project (Web service URL https://……./sites/_vti_bin/lists.asmx) 2. SourceLists.Lists sourceListService = new SourceLists.Lists();
System.Net.NetworkCredential networkCredentials = new System.Net.NetworkCredential(“userid”, “pwd”);
sourceListService.Credentials = networkCredentials;
Upvotes: 5