Pievienot webreference uz Lists.asmx SharePoint vietnē.
http://localhost / _vti_bin / Lists.asmx (SharePoint virtuālo direktoriju URL / _vti_bin / Lists.asmx
rakstīt šādas metodes savā webservice.
privātas data.DataTable GetDataTableFromWSS(bool onlySchema) { string WssSiteUrl = http://192.168.111.21; string WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists saraksti = jauni WssSite.Lists(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;
lists.PreAuthenticate = true; //you have to pass the […]