Retreiving Zoznam obsah prostredníctvom WebService v SharePoint 2003

Pridať do webreference Lists.asmx v SharePoint.

http://localhost / _vti_bin / Lists.asmx (SharePoint virtuálne adresáre URL / _vti_bin / Lists.asmx

napísať nasledovné metódy vo vašej webovej služby.

súkromné data.DataTable GetDataTableFromWSS(bool onlySchema) { Reťazec WssSiteUrl = http://192.168.111.21; Reťazec WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists zoznam = new WssSite.Lists(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;

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