View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
Thank you for this tip, it was of much help for us.
Can you also tell, is there a way to get unprocessed POST data in older 1.2x version of Foxweb? (we still have couple of NT4 servers that run it)
Thanks again
Sent by FoxWeb Support on 04/22/2002 06:04:00 PM:
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")
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

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")"POST","http:/somehost/somefile.asp", .F.)
In ASP we could get XML source like this (JScript):
var xmlDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.4.0");
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)?