Information générale
Titre:
OLE IDispatch Exception Code 0 from MSXML4
Versions des environnements
Hi All
I received the above error when running the compiled EXE but it works 100% within
the IDE.
The failure occurs when executing the "Send" of XMLHttp.
objUnform = CREATEOBJECT("MSXML2.DOMDocument.4.0")
objUnform.Async = .f.
***********************************
** strXml = path\XMl file
**********************************
objUnform.Load(strXml)
IF objunform.ParseError.ErrorCode <> 0
WAIT WINDOW "Error loading XML"
Else
objHTTP=CREATEOBJECT("MSXML2.XMLHTTP.4.0")
objHTTP.open("POST", mstrURL,.f., mstrUsername, mstrPassword)
objHTTP.setRequestHeader("Content-Type", "text/xml")
*******************************************
** Error occurs on this line
*******************************************
objHTTP.Send(ObjUnform.Xml)
*******************************************
Endif
Any advice would be appreciated.
Regards
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