Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP! MSXML SOAP Request Error Driving me nuts!

Status
Not open for further replies.

MissouriTiger

Programmer
Oct 10, 2000
185
US
NOTE: I posted a similar question on the ASP forum a few days ago and no one was ableto help (------------------

I'm attempting to set up a PayPal direct payment system on a client's website (using 3-token authentication, not certificate authentication). My XMLHTTP request generates the following error:

'''''''''ERROR MSG '''''''''''''''''''''''''''

"msxml3.dll error '800c0008'

The download of the specified resource has failed.

/PayPalFunctions_GREG.asp, line 213 "

'''''''''END ERROR MSG '''''''''''''''''''''''

I've been stuck on this problem for a considerable time. My boss is pulling me off of this project and it's a big letdown. I'm too inexperienced to know where to turn next.

I want to get this thing working so bad I'm working on it on my own time without pay.


Below is the code for my XMLHTTP request, but you can download the whole test program at:


That way you can run it and see for yourself what happens.


''''''''''''''''''''''''''''''''''''''''''''''''''''
CODE (XMLHTTP request)
''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim objHttpRequest, objResponseXMLDoc, objNodeList

set objHttpRequest = Server.createObject("Microsoft.XMLHTTP")

objHttpRequest.open "POST", strPayPalAPIUrl, False

objHttpRequest.setRequestHeader "Content-Type", "text/xml"
objHttpRequest.setRequestHeader "SOAPMethodName", "urn:ebay:api:payPalAPI"

objHttpRequest.send strSoapRequest

'THIS IS AS FAR AS IT GETS BEFORE I GET THE ERROR MESSAGE.

'etc, more code, etc...............

''''''''''''''''''''''''''''''''''''''''''''''''''''
END OF CODE
''''''''''''''''''''''''''''''''''''''''''''''''''''

Any help/suggestions will be greatly appreciated!!



Greg Norris
Software Developer

________________________________________________
Constructed from 100% recycled electrons.
 
Can only suggest some measures to try.

[1] Use server-side version.
>[tt]set objHttpRequest = Server.createObject("Microsoft.XMLHTTP")[/tt]
[tt]set objHttpRequest = Server.createObject("msxml2.serverXMLHTTP")[/tt]

[2] Set ignore all server-side cert error. Put the line before anywhere before .send and of course after instantiation.
[tt]objHttpRequest.setoption 2,13056[/tt]
Info on this option can be found in the documentation.
 
I already tried what you suggested. It is one of the million things I tried.

However, I just tried again, exactly as you suggested, and I got the follwing error message:

********* ERROR MESSAGE ***********************

msxml3.dll error '80072f0c'

A certificate is required to complete client authentication

/paypal/PayPalFunctions.asp, line 218

********* END ERROR MESSAGE *******************

I get this same error message every time I try to use the following line of code (just like you suggested):

set objHttpRequest = Server.createObject("msxml2.serverXMLHTTP")

When I first got this error message a couple weeks ago, I mentioned it to my boss, and he didn't even know what certificate it was referring to, and he has been doing Web Development on this website for 5 years.

What is really weird, is that I have seen this same code in other scripts on our server. How come my script gets an error executing the same line of code that other scripts in the same website run successfully? I don't know anything about certificates or server security - not a thing.

My boss doesn't know either, and he built half of that website. He's been doing ASP developemnt for years, and he can't fix my code either.



Greg Norris
Software Developer

<A href="__________________________________________________
Constructed from 100% recycled electrons.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top