Ophalen van Lijst Content via webservice in SharePoint 2003

Voeg de WebReference aan de Lists.asmx in SharePoint-site.

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

Schrijf de volgende methoden in uw webservice.

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

lists.PreAuthenticate = true; //je moet het passeren […]