↧
You can trace any HTTP request with Fiddler, yes...
+++ Rick ---
This is a new service on the vendor's webserver, so the issue may be on their end. We are in test mode.
Thanks for the feedback! Hope it's warmer where you are then Kentucky!
This is much simpler:
lcXML = "<XML FROM WHEREEVER>" loHttp = CREATEOBJECT("wwHttp") loHttp.nHttpPostMode = 4 loHttp.AddPostKey(lcXML) lcResult = loHttp.HttpGet(lcUrl) ? lcResult
+++ Rick ---
Here's what I am doing:
1) Create Object using wwIPStuff > Success
2) Connect to server using HTTPConnect() > Success
3) Build XML String > XML Validator indicates No errors when I validate the string
4) Issue lcXML = STRCONV(lcXML, 9)
5) Set Headers to include: Content-Type: text/xml
6) Issue AddPostKey() to clear POST Buffer
7) Set nHttpPostMode = 4
8) Issue AddPostKey(lcXML)
9) Issue HTTPGetEx(lcPage,@lcResponse,@lnSize,lcHeaders) > Error 500.00 Internal Server Error
The vendor says the problem is either bad XML or invalid content type header.
The vendor also says the XML String should be posted as body of http request.
Question: Does AddPostKey(lcXML) place the XML string into the body of the http request?
If not, how would I place the XML string into the body of the http request?
Finally, once I get this working correctly, the vendor will send a zipped file in the response. The file size will be approximately 6Meg. Am I using the correct approach with HTTPGetEx shown above? Ultimately, I need to save the zipped file to disk for further processing.
Thanks!