下面是我的ASP页尝试对XML请求/响应如何制作XML文件的响应?
Request.asp
<%
pXML = "<XmlRequest><FileNo>123</FileNo></XmlRequest>"
Set http = CreateObject("MSXML2.ServerXMLHTTP")
http.open "GET", "http://test.com/response.asp?xml_request=" & pXML, 0
http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
http.send ""
http_response = http.responseText
%>
Response.asp
<%
xml_request = Request.QueryString("xml_request")
Set xd= Server.CreateObject("Msxml2.DOMDocument")
xd.async = False
xd.loadXML(Xml_Request)
FileNo = xd.getElementsByTagName("XmlRequest").item(0).getElementsByTagName("FileNo").item(0).text
''' here is the problem
%>
响应文件是在这个服务器路径Server.MapPath("123.xml")
(这是一个大文件)
我如何发送响应文件到“Response.asp”的“Request.asp”
你有什么理由不具有请求的asp + access的XML文件的URL直接是什么? (例如“http://test.com/123.xml”) – AnthonyWJones 2012-02-21 14:15:38