Retreiving lista tartalma a WebService a SharePoint 2003

Add a webreference a Lists.asmx a SharePoint-webhely.

http://localhost / _vti_bin / Lists.asmx (SharePoint virtuális könyvtár URL / _vti_bin / Lists.asmx

írjon az alábbi módszereket a webservice.

Privát data.DataTable GetDataTableFromWSS(bool onlySchema) { karakterlánc WssSiteUrl = http://192.168.111.21; karakterlánc WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists listák = new WssSite.Lists(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;

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