Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLHTTP Send Problem
Message
From
20/03/2005 04:09:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
XMLHTTP Send Problem
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00997660
Message ID:
00997660
Views:
130
Hi All

I have a problem when attempting to send an XML file in that all the document
does not seem to be sent.

objUnform = CREATEOBJECT("MSXML2.DOMDocument.4.0")
objUnform.Async = .f.
** (strxml is path to the XML file recorded on my local hard disk)
objUnform.Load(strXml)
objHTTP=CREATEOBJECT("MSXML2.XMLHTTP.4.0")
** The destination is a secure site so mstrURL contains "https etc + user and password"
objHTTP.open("POST", mstrURL,.f., mstrUsername, mstrPassword)
objHTTP.setRequestHeader("Content-Type", "text/xml")
objHTTP.Send(ObjUnform.Xml)

The site I am connecting to is geared to repond initialy with an XML document acknowledging receipt of my communication and providing me with a unique reference to
my document. I am able to parse the acknowledgement and obtain the reference which
I then pass back to check that the initial document has been accepted into their
system. If accepted the system will automatically respond with another XML document
indicating acceptance if not it responds with an XML document detailing errors and an
error classification which in my case shows that the document sent is incomplete.

I can find nothing in the SDK documentation which details what limitations are placed
when using "POST" and ultimately the application will need to handle much larger
files than the 7K that I am trying to send in this instance.

Any advice wuld be much appreciated.

Tom
Next
Reply
Map
View

Click here to load this message in the networking platform