I need to access a sharepoint application from my desktop application (written in C#). How should I pass credentials and verify authentication?
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;
也许你会发现这一个方便的参考。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.