我需要从桌面应用程序访问sharepoint应用程序(用C#编写)。我应该如何传递凭据并验证身份验证?
答案 0 :(得分:5)
1.将WebService引用(Name:SourceLists)添加到项目中(Web服务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;
答案 1 :(得分:0)
也许你会发现this是一个方便的参考。