Information générale
Titre:
XMLHTTP Send Problem
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement