Retreiving Lys inhoud deur WebService in SharePoint 2003

Voeg die webreference die Lists.asmx in SharePoint webwerf.

http://localhost / _vti_bin / Lists.asmx (SharePoint virtuele Gids URL / _vti_bin / Lists.asmx

skryf die volgende metodes in jou webservice.

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

lists.PreAuthenticate = true; //jy het die te slaag […]