XML Response using ASP

Results 1 to 2 of 2

Thread: XML Response using ASP

  1. #1
    Join Date
    Dec 1969

    Default XML Response using ASP

    I have created an ASP application that uses the XMLHTTP object to send XML file to a URL. The URL receives the file and then sends a response. I am using XMLHTTP.STATUS and XMLHTTP.STATUSTEXT to get response.<BR><BR>My question is how do I get the response back in relation to XML document and not the HTTP protocol?<BR>

  2. #2
    Harrison Guest

    Default RE: XML Response using ASP

    Assuming you want to load the response into a Dom Document, try something like this:<BR><BR>objXMLHTTP.Open "POST", strTargetURL, false<BR>objXMLHTTP.setRequestHeader "CONTENT_TYPE", "text/xml"<BR>objXMLHTTP.Send objXMLRequest<BR><BR>Dim strXMLResponse<BR>strXMLResponse = objXMLHTTP.responseText<BR><BR>&#039;Load XML string<BR>Dim objXMLResponse<BR>Set objXMLResponse = Server.CreateObject("MSXML2.DOMDocument")<BR>objXM LResponse.Async = False<BR>objXMLResponse.LoadXML(strXMLResponse)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts