nbraasch
asked on
How can I resolve an issue with Microsoft.XMLHTTP posting?
I am posting an xml document to an third-party server, and it is failing with the error 0x800c0008. I am able to use the same code to post to a different third-party server successfully. How can I trouble shoot the issue prior to contacting the third party?
Here is my vbscript code:
' Create XMLHTTP Object
Set oXMLhttpObject = WScript.CreateObject("Micr osoft.XMLH TTP")
' Open connection
oXMLhttpObject.Open "POST",cnXMLHTTP_TRANSACTI ON_URL,fal se
' Set Header for content type
oXMLhttpObject.setRequestH eader "Content-type", "text/xml"
' Send XML string
oXMLhttpObject.send strXMLString
' Read Response
strResponseStatus = oXMLhttpObject.status
strResponseText = oXMLhttpObject.responseTex t
Here is my vbscript code:
' Create XMLHTTP Object
Set oXMLhttpObject = WScript.CreateObject("Micr
' Open connection
oXMLhttpObject.Open "POST",cnXMLHTTP_TRANSACTI
' Set Header for content type
oXMLhttpObject.setRequestH
' Send XML string
oXMLhttpObject.send strXMLString
' Read Response
strResponseStatus = oXMLhttpObject.status
strResponseText = oXMLhttpObject.responseTex
ASKER
Already tried that. The language is set in explorer.
ASKER
Also, I already said that this is working for another third party server, just not this one.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, it is, and yes, there is a cert error. What is the option parameter do do that?
ASKER
Nevermind, I found it. I am awarding you the points darth sonic. thank you for the pointer.
ASKER
It would have helped if Darthsonic had provided the code to ignore the cert error, instead of just saying that there was one.
I was not online at the time you posted that there is a cert error. I would have posted the code for you ;)
For all of you searching for a soution with cert errors on xmlhttp:
xmlhttp.setOption 2, 13056 'ignore all certificate errors!
xmlhttp.setOption 2, 13056 'ignore all certificate errors!
http://support.microsoft.com/kb/302820