Afegiu el Webreference a la Lists.asmx en lloc de SharePoint.
http://localhost / _vti_bin / Lists.asmx (SharePoint virtuals URL Directori / _vti_bin / Lists.asmx
escriure els següents mètodes en el seu servei web.
privat GetDataTableFromWSS data.DataTable(bool onlySchema) { cadena WssSiteUrl = http://192.168.111.21; cadena WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists llistes = WssSite.Lists nou(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;
lists.PreAuthenticate = true; //you have to pass the […]