Retreiving sadržaja popisa u sustavu SharePoint kroz WebService 2003

Dodaj webreference na Lists.asmx na SharePoint web-mjestu.

http://localhost / _vti_bin / Lists.asmx (SharePoint virtualni katalog URL / _vti_bin / Lists.asmx

pisati sljedeće metode u vašem webservice.

privatni data.DataTable GetDataTableFromWSS(bool onlySchema) { string WssSiteUrl = http://192.168.111.21; string WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists popisi = Novi WssSite.Lists(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;

lists.PreAuthenticate = true; //you have to pass the […]