How to make response of xml file?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Below is my asp pages trying for xml request/response<br/>
<br/>
Request.asp<br/>
<br/>
<%<br/>
pXML = "<XmlRequest><FileNo>123</FileNo></XmlRequest>"<br/>
Set http = CreateObject("MSXML2.ServerXMLHTTP")<br/>
http.open "GET", "http://test.com/response.asp?xml_request=" & pXML, 0<br/>
http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"<br/>
http.send ""<br/>
http_response = http.responseText<br/>
%><br/>
<br/>
Response.asp<br/>
<br/>
<%<br/>
xml_request = Request.QueryString("xml_request")<br/>
<br/>
Set xd= Server.CreateObject("Msxml2.DOMDocument")<br/>
xd.async = False<br/>
xd.loadXML(Xml_Request)<br/>
<br/>
FileNo = xd.getElementsByTagName("XmlRequest").item(0).getElementsByTagName("FileNo").item(0).text<br/>
here is the problem <br/>
%><br/>
<br/>
Response file is in this server path `Server.MapPath("123.xml")` (this is a large file)<br/>
<br/>
How i send response file to the "Request.asp" from "Response.asp"

View the full article
 
Back
Top