Solved

How can I resolve an issue with Microsoft.XMLHTTP posting?

Posted on 2007-11-27
9
885 Views
Last Modified: 2010-04-21
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("Microsoft.XMLHTTP")            
' Open connection
oXMLhttpObject.Open "POST",cnXMLHTTP_TRANSACTION_URL,false            
' Set Header for content type
oXMLhttpObject.setRequestHeader "Content-type", "text/xml"            
' Send XML string
oXMLhttpObject.send strXMLString
' Read Response
strResponseStatus       = oXMLhttpObject.status
strResponseText       = oXMLhttpObject.responseText
0
Comment
Question by:nbraasch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 19

Expert Comment

by:peh803
ID: 20358259
How about something like this?

http://support.microsoft.com/kb/302820
0
 
LVL 1

Author Comment

by:nbraasch
ID: 20358289
Already tried that.  The language is set in explorer.
0
 
LVL 1

Author Comment

by:nbraasch
ID: 20358292
Also, I already said that this is working for another third party server, just not this one.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Accepted Solution

by:
Sven earned 250 total points
ID: 20382887
Is the URL you are posting to SSL secured? If so, when you call it in your browser is there a certificate error? If so, there is an option parameter for XMLHTTP to ignore those!
0
 
LVL 1

Author Comment

by:nbraasch
ID: 20383676
Yes, it is, and yes, there is a cert error.  What is the option parameter do do that?
0
 
LVL 1

Author Comment

by:nbraasch
ID: 20383801
Nevermind, I found it.  I am awarding you the points darth sonic.  thank you for the pointer.
0
 
LVL 1

Author Closing Comment

by:nbraasch
ID: 31411194
It would have helped if Darthsonic had provided the code to ignore the cert error, instead of just saying that there was one.
0
 
LVL 11

Expert Comment

by:Sven
ID: 20394305
I was not online at the time you posted that there is a cert error. I would have posted the code for you ;)
0
 
LVL 11

Expert Comment

by:Sven
ID: 20394309
For all of you searching for a soution with cert errors on xmlhttp:

xmlhttp.setOption 2, 13056  'ignore all certificate errors!
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question