Windows Server 2008上的贝宝传统的ASP MSXML错误(paypal class

2019-10-19 13:43发布

以下罚款日常工作由我赢2003服务器发送付款请求给贝宝。

Set vXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")

vXMLHttp.setOption(3) = CERT_PATH

strURL = KEYPOINT &"/AdaptivePayments/Pay"
vXMLHttp.open "POST", strURL, false  

vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-USERID", API_USERNAME

vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-PASSWORD", API_PASSWORD

'vXMLHttp.setRequestHeader "X-PAYPAL-SECURITY-SIGNATURE",  API_SIGNATURE

vXMLHttp.setRequestHeader "X-PAYPAL-REQUEST-DATA-FORMAT", REQUEST_FORMAT

vXMLHttp.setRequestHeader "X-PAYPAL-RESPONSE-DATA-FORMAT", RESPONSE_FORMAT

vXMLHttp.setRequestHeader "X-PAYPAL-APPLICATION-ID", APPLICATION_ID

vXMLHttp.setRequestHeader "X-PAYPAL-CERT-PATH", CERT_PATH

vXMLHttp.Send vrequest

vXMLHttp.waitForResponse 5 

我感动,赢得Server 2008 R2和它抛出这个错误的.Send()

msxml6.dll错误'80072f9a'
系统错误:-2147012710。

我相信我还因为这个错误之前正确安装了API证书,我得到一个证书错误。

该MSXML6.dll是6.3版本

难道是权限? 任何人都有迁移的PayPal至2008年的问题?

Answer 1:

试试这个;

Const SXH_OPTION_SELECT_CLIENT_SSL_CERT = 3
Const SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056

Call vXMLHttp.setOption(SXH_OPTION_IGNORE_SERVER_SSL_CER T_ERROR_FLAGS, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS)


文章来源: paypal classic asp msxml error on windows server 2008