Add webreference a Lists.asmx a nan sit charepwen.
http://lokalost / _vti_bin / Lists.asmx (Charepwen Virtual Anyè URL / _vti_bin / Lists.asmx
ekri metòd sila yo nan webservice ou.
prive data.DataTable GetDataTableFromWSS(bool onlySchema) { fisèl WssSiteUrl = http://192.168.111.21; fisèl WssSiteUrl = ConfigurationSettings.AppSettings[“WssSiteUrl”]; WssSite.Lists lis = nouvo WssSite.Lists(); lists.Url = WssSiteUrl + “_vti_bin / Lists.asmx”; lists.Credentials = System.Net.CredentialCache.DefaultCredentials;
lists.PreAuthenticate = vre; //ou gen yo pase nan […]