Retreiving Liosta Ábhar trí WebService i SharePoint 2003

Cuir an webreference don Lists.asmx i láithreán SharePoint.

http://localhost / _vti_bin / Lists.asmx (SharePoint Eolaire fíorúil URL / _vti_bin / Lists.asmx

scríobh na modhanna seo a leanas i do WebService.

príobháideach data.DataTable GetDataTableFromWSS(bool onlySchema) { teaghrán WssSiteUrl = http://192.168.111.21; teaghrán WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists liostaí = WssSite.Lists nua(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;

lists.PreAuthenticate = fíor; //caithfidh tú a pas a fháil sa […]