public string getxmlresponse(string ChkRequest) { string RequestURLString = " http://www.hotelspro.com/xf_3.0/hp_xml_request_parser.php?xml=" + ChkRequest; WebRequest wrequest = null; try { string Response = string.Empty; wrequest = WebRequest.Create(RequestURLString); Stream ResponseStrm = null; wrequest.Timeout = 0xea60; ResponseStrm = wrequest.GetResponse().GetResponseStream(); StreamReader Reader = new StreamReader(ResponseStrm); try { Response = Reader.ReadToEnd(); } catch { } return Response; ResponseStrm.Close(); Reader.Close(); } catch (Exception) { } return ""; }
XDocument.Parse
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)