Date:  04/25/2002 07:55:30 PM Msg ID:  000595
From:  FoxWeb Support Thread:  000581
Subject:  Re: Re: How to get posted XML source code?
Try using:
SUBSTR(FW_data_in, AT('*+*+*', FW_data_in)+6)

I don't have a test implementation of FoxWeb 1.29c on my computer, but I think the above code will returned the unprocessed POST data buffer.  The problem with using these undocumented variables is that you will need to update your code once you migrate to FoxWeb 2.

FoxWeb Support Team
support@foxweb.com

Sent by Oleg Goncharuk on 04/24/2002 11:06:43 PM:
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
 
/Oleg
 
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")
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.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