Dodajte webreference na Lists.asmx na mestu SharePoint.
http://localhost / _vti_bin / Lists.asmx (SharePoint virtualni imenik URL / _vti_bin / Lists.asmx
napisati naslednje metode v vašem WebService.
zasebno data.DataTable GetDataTableFromWSS(bool onlySchema) { Niz WssSiteUrl = http://192.168.111.21; Niz WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists seznami = novi WssSite.Lists(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;
lists.PreAuthenticate = true; //moraš opraviti […]