Classic ASP and Paypal API SOAP -
im trying call de getverifiedstatus api. im using server windows 7. can me plz. code:
dim objxmlhttp : set objxmlhttp = server.createobject("msxml2.xmlhttp.3.0") dim strrequest, strresult, strurl strurl = "https://svcs.paypal.com/adaptiveaccounts/getverifiedstatus" strrequest ="<?xml version=""1.0"" encoding=""utf-8""?>" _ & "<soap-env:envelope xmlns:soap-env=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:soap-enc=""http://schemas.xmlsoap.org/soap/encoding/""" _ & " xmlns:xsi=""http://www.w3.org/2001/xmlschema-instance"" xmlns:xsd=""http://www.w3.org/2001/xmlschema"">" _ & " <soap-env:header>" _ & " <requestercredentials xmlns=""urn:ebay:api:paypalapi"" xsi:type=""ebl:customsecurityheadertype"">" _ & " <credentials xmlns=""urn:ebay:apis:eblbasecomponents"" xsi:type=""ebl:useridpasswordtype"">" _ & " <username>xxxx</username>" _ & " <password>xxxx</password>" _ & " <signature>xxxx</signature>" _ & " <subject>xxxx</subject>" _ & " </credentials>" _ & " </requestercredentials>" _ & " </soap-env:header>" _ & " <soap-env:body>" _ & " <version xmlns=""urn:ebay:apis:eblbasecomponents"">98.0</version>" _ & " <emailaddress xs:""string"">john@gmail.com</emailaddress>" _ & " <firstname xs:""string"">john</firstname>" _ & " <lastname xs:""string"">vegas</lastname>" _ & " <matchcriteria xs:""string"">name</matchcriteria>" _ & " <requestenvelope common:""requestenvelope"">" _ & " <detaillevel xs:""string"">returnall</detaillevel>" _ & " <errorlanguage xs:""string"">en_us</errorlanguage>" _ & " </requestenvelope>" _ & " </soap-env:body>" _ & "</soap-env:envelope>" objxmlhttp.open "post", "" & strurl & "", false objxmlhttp.setrequestheader "content-type", "text/xml; charset=utf-8" objxmlhttp.setrequestheader "content-length", len(strrequest) objxmlhttp.setrequestheader "soapaction", strurl objxmlhttp.send(strrequest) strresult = objxmlhttp.responsetext response.write strresult
im receiving error:
msxml3.dll erro '800c0008' failed download specified resource
at objxmlhttp.send(strrequest) line. when changed http object msxml2.serverxmlhttp, returns error said: certified necessary complete client authentication.
tks.
you can use call objxmlhttp.send(strrequest) instead of objxmlhttp.send(strrequest)
i not sure can try because found classic asp tutorial payment gatway.
here link that: http://jadendreamer.wordpress.com/2009/09/02/classic-asp-soap-request-code-example
Comments
Post a Comment