Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-11-27
9
Medium Priority
?
891 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 11

Accepted Solution

by:
Sven earned 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

610 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