通過 WebService的Retreiving在SharePoint列表內容 2003

添加webreference在SharePoint網站 Lists.asmx.

銈://本地主機 / _vti_bin / Lists.asmx (SharePoint虛擬目錄 URL / _vti_bin / Lists.asmx

寫在你的web服務下面的方法.

私人data.DataTable GetDataTableFromWSS(BOOL onlySchema) { 字符串WssSiteUrl = HTTP://192.168.111.21; 字符串WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists列表=新WssSite.Lists(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;

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