Retreiving List indhold via WebService i SharePoint 2003

Tilsæt WebReference til Lists.asmx i SharePoint-webstedet.

http://localhost / _vti_bin / Lists.asmx (SharePoint virtuelle bibliotek URL / _vti_bin / Lists.asmx

skriver følgende metoder i din webservice.

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

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