Daftar Konten retreiving melalui WebService di SharePoint 2003

Tambahkan webreference ke Lists.asmx di situs Sharepoint.

http://localhost / _vti_bin / Lists.asmx (SharePoint maya Direktori URL / _vti_bin / Lists.asmx

menulis metode berikut dalam jejaring Anda.

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

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