Mwen gen yon travay nan travay sou devlopman aplikasyon an fenèt ki pral chache done yo gade lis soti nan charepwen ak pwosesis done ki nan genyen fòm app.
Précédemment mwen itilize yo chache done yo lè l sèvi avèk Lists.asmx,views.asmx.
Koulye a, mwen vin konnen gen lòt fason chache done ki nan gade lis.
Sentaks:
https://myserver.com / _vti_bin / owssvr.dll?Km = Display&Make ={Id lis}&View ={View Id}&XMLDATA = vrè
Egzanp URL:
https://myserver.com / _vti_bin / owssvr.dll?Km = Display&Make ={EA1BD05B 2DDB5B%%% 2D434B 2DB2FC% 2DB9AB9EE18A91}&View ={B959F555% 2D798B% 2D4F47% 2D9FBB% 2D81513B85F906}&XMLDATA = vrè
Koulye a, li pral ba done yo xml kòm repons.
ekri repons a xmldoc ak pwosesis done yo.
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(“https://myserver.com / _vti_bin / owssvr.dll?Km = Display&Make ={EA1BD05B 2DDB5B%%% 2D434B 2DB2FC% 2DB9AB9EE18A91}&View ={B959F555% 2D798B% 2D4F47% 2D9FBB% 2D81513B85F906}&XMLDATA = vrè”);
myRequest.Credentials =
System.Net.CredentialCache.DefaultCredentials;
HttpWebResponse repons = (HttpWebResponse)myRequest.GetResponse();
XmlDocument doc = nouvo XmlDocument();
doc.Load(response.GetResponseStream());
Leave a Reply