How to Send and Receive XML request to another ASP classic page?
- by SH
I want to send an XML to another Asp Classic page on the same domain. i am using following code for sending XMl
url = "http://localhost/api/xmlget.asp"
information = "ColtTaylor100"
Set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST", url, false
xmlhttp.setRequestHeader "Content-Type", "text/xml"
xmlhttp.send information
And i have setup xmlget.asp with following code to receive XML:
Dim xmlDoc
Dim userName
set xmlDoc=Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load(Request)
I run the code but do not see any reflection, how would i know? And if it is successful I want to know the xml and i dont know exact property to load from xmlDoc!