Retreiving Orodha ya Yaliyomo kupitia WebService katika SharePoint 2003

Kuongeza webreference kwa Lists.asmx katika tovuti SharePoint.

http://kwenye localhost / _vti_bin / Lists.asmx (SharePoint virtual Directory URL / _vti_bin / Lists.asmx

kuandika mbinu zifuatazo katika webservice yako.

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

lists.PreAuthenticate = kweli; //una kupita […]