Hi,
A client has an ASP page setup which expects an XML document to be sent in the query string portion of an HTTP URL. This is the example code that I'm using to try and do this:
lcXML=FILETOSTR('c:\test.xml')
lnlen=LEN(lcxml) && Displays 3903 as the length
* I've created a web connection app to test the retreiving of the xml document myself.
lcurl="
http://localhost/gnet/acceptorder.gn?doc=" + lcXML + "'&uid=123450'"
oXmlHTTP = CreateObject("MSXML2.XMLHTTP")
oXmlHTTP.Open("POST", lcurl, .f.) && Tried using "GET" and "POST" here.
oXmlHTTP.setRequestHeader("Content-Type","text/xml")
oXmlHTTP.Send() && Get error on this line.
=MESSAGEBOX(.responseText)
The problem is that I get an OLE error on the .Send() line saying: Unknown COM status. It works fine if the lcXML variable is under 2K, but the xml order document can easily exceed this! In their ASP page they have this code here:
Dim oXml
Set oXml = Server.CreateObject("MSXML2.DOMDocument")
With oXml
.async = False
Call .loadXML( Request.QueryString("doc") )
End With
Response.Write oXml.xml
So I need somebody to confirm that: Either I'm doing something wrong in my VFP code or that they shouldn't be trying to receieve a large XML document using the querystring. I've been told that there is a 2K limit when posting variables over HTTP.
Really stuck..
Thanks
Tristan McElhinney
BackPack Product Manager
www.backpackpro.com - Zip compatible backup software