Fügen Sie die WebReference die Lists.asmx in SharePoint-Website.
http://localhost / _vti_bin / Lists.asmx (SharePoint virtuellen Verzeichnis-URL / _vti_bin / Lists.asmx
Schreiben Sie die folgenden Methoden in Ihren Webservice.
Private data.DataTable GetDataTableFromWSS(bool onlySchema) { String WssSiteUrl = http://192.168.111.21; String WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists Listen = new WssSite.Lists(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;
lists.PreAuthenticate = true; //Sie haben die vorbei […]