How to Send and Receive XML request to another ASP classic page?
Posted
by SH
on Stack Overflow
See other posts from Stack Overflow
or by SH
Published on 2010-05-06T21:46:44Z
Indexed on
2010/05/06
21:48 UTC
Read the original article
Hit count: 168
asp-classic
|Xml
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!
© Stack Overflow or respective owner