Date:  04/22/2002 06:04:00 PM Msg ID:  000585
From:  FoxWeb Support Thread:  000581
Subject:  Re: How to get posted XML source code?
The unprocessed POST data can be retrieved by calling Request.Form() with no parameters:
 
IF LOWER(Request.ContentType)="text/xml"
xmlDoc = CreateObject("Msxml2.FreeThreadedDOMDocument.4.0")
xmlDoc.LoadXML(Request.Form())
sXML = xmlDoc.XML
... Rest of XML parsing code ...

Of course if all you need to do is retrieve the XML data into a string, then you don't need to use an XML Document object:

IF LOWER(Request.ContentType)="text/xml"
sXML = Request.Form()
... Rest of XML parsing code ...

FoxWeb Support Team
support@foxweb.com

Sent by Oleg Goncharuk on 04/22/2002 12:08:17 AM:
Recently we started to use FoxWeb to generate XML source for web services. But to get most of this technology we would like to get XML source code posted by MSXML2.XMLHTTP like this:
 
xmlDoc = CreateObject("Msxml2.FreeThreadedDOMDocument.4.0")
xmlhttp = CreateObject("Msxml2.XMLHTTP.4.0")
xmlHTTP.open("POST","http:/somehost/somefile.asp", .F.)
xmlHTTP.send(xmlDoc)
 
In ASP we could get XML source like this (JScript):
 
var xmlDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.4.0");
xmlDoc.load(Request);
var sXml=xmlDoc.xml;
 
Is there a way to get XML posted this way in FoxWeb script (I mean ANY way, not  just an ASP-like way)?
 
/Oleg