Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLHTTP Send Problem
Message
From
21/03/2005 04:13:56
 
 
To
20/03/2005 04:09:03
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00997660
Message ID:
00997763
Views:
19
Hi,
>>
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)
Just a couple of suggestions:
(a) Check that the .load is successful. In fact, assuming the XML is valid, since you have the body in an XML file already then you could just use .Send(FileToStr(strXML)).
(b) Redirect the send to the MSSOAP trace to see what's actually being sent.

HTH,Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform