[thelist] Playing with ServerXMLHTTP

darren darren at web-bitch.co.uk
Wed Apr 17 10:35:11 CDT 2002


On 17 April 2002 at 14:55:16, James Q. Stansfield <jqs at iridani.net> wrote:

JQS>     1) Create an ASP page that 'POST's an XML snippet to another ASP.
JQS>     2) The second ASP page, processes the XML, and save a new XML snippet to
JQS> the Response object.
JQS>     3) The original ASP page grabs the XML returned and does something with
JQS> it.

do you mean something like:

   set oSrvHTTP     = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
   set oXMLDocument = Server.CreateObject("MSXML2.DOMDocument.4.0")

   sXML = "<your xml string here>"

   oXMLDocument.async = false                                           ' Turn off asyncronous file loading
   oXMLDocument.loadXML(sXML)

   oSrvHTTP.open "POST", "http://example.com/example.asp", false
   oSrvHTTP.send oXMLDocument
   set oDetails = oSrvHTTP.ResponseXML

??

oDetails contains the returned xml.

hth,

darren




More information about the thelist mailing list