Hi everyone,
I was wondering if anyone could help me with a problem. We are running a VFP 9 COM and I have written code to integrate with a company that uses a certificate. I've installed the certificate on the server that the COM is on and am able to run it fine if I'm running through a VFP command window and calling the COM method code on that server. Here is an example of my code:
oHTTP = CREATEOBJECT("MSXML2.ServerXMLHTTP.6.0")
oHTTP.setTimeouts(60000,300000,60000,180000)
oHTTP.setOption(3) = lcCertificate
oHTTP.OPEN("POST",SERVERURL)
oHTTP.setRequestHeader("Content-Type","text/xml")
oHTTP.SEND(lcXML)
lcResponse = oHTTP.responseBody
lnStatusCode = oHTTP.status
lcStatusText = ALLTRIM(oHTTP.statustext)
lcData = lcResponse
This works fine, but the problem is that when I attempt to call this COM method via ASP using HTTP, it fails saying the certificate is required.
Error Number: 1429
Line Contents:
Message: OLE IDispatch exception code 0 from
msxml6.dll: A certificate is required to complete
client authentication
Has anyone had any experience with this?
Thanks in advance for any help you can provide!