I'm trying to modify an existing (Classic ASP of all things) site to hit a secure web service at Chase Bank. Chase has installed our certificate on their server. I am having trouble, however, understanding how I have to configure my server to properly pass our certificate to Chase.
I wrote a little test page to test connectivity:
Dim objXMLHTTP : set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
Dim strRequest, strResult, strFunction, strURL, strNamespace
'URL to SOAP namespace and connection URL
strURL = "https://ws.payconnexion.com:1401/pconWS/9_3/"
strRequest="<?xml version=""1.0"" encoding=""utf-8""?>" _
& "<soap:Envelope xmlns:soap=""http://www.w3.org/2003/05/soap-envelope"" xmlns:_3=""http://ws.payconnexion.com/pconWS/9_3"">" _
& "<soap:Header /><soap:Body>" _
& "<_3:initiatePublicSessionTransferRequest><_3:billerGroupId>X50</_3:billerGroupId><_3:productCode>SinglePayment</_3:productCode>" _
& "<_3:billerPayorId xsi:nil=""true"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""/>" _
& "<_3:amountDue>1.50</_3:amountDue><_3:amountDueTbd>false</_3:amountDueTbd><_3:dueDate>2011-08-15</_3:dueDate><_3:dueDateTbd>false</_3:dueDateTbd>" _
& "<_3:level2SalesTaxAmount xsi:nil=""true"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""/>" _
& "<_3:level2CustomerReferenceNumber xsi:nil=""true"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""/>" _
& "<_3:userId>11112222</_3:userId>" _
& "<_3:locale xsi:nil=""true"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""/>" _
& "<_3:parameters><_3:parameter><_3:name>StatementNo</_3:name><_3:value>123456</_3:value></_3:parameter></_3:parameters><_3:disallowLogin>false</_3:disallowLogin>" _
& "<_3:returnSessionId xsi:nil=""true"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""/>" _
& "<_3:returnUrl xsi:nil=""true"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""/>" _
& "</_3:initiatePublicSessionTransferRequest></soap:Body></soap:Envelope>"
objXMLHTTP.open "POST", "" & strURL & "", False
objXMLHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
objXMLHTTP.setRequestHeader "Content-Length", Len(strRequest)
objXMLHTTP.setRequestHeader "SOAPAction", "https://ws.payconnexion.com:1401/pconWS/9_3/initiatePublicSessionTransferRequest"
'send the request and capture the result
objXMLHTTP.send strRequest
strResult = "strResult: " & objXMLHTTP.responseText
'display the XML
response.write strResult
The line I've highlighted in bold red throws this error:
Error Type:
msxml3.dll (0x80072F0C)
A certificate is required to complete client authentication
I believe that I need to configure IIS to send the correct certificate but would really appreciate any direction.
Thanks