01-07-2013, 03:17 PM
Hi All,
I am getting error as "Certificate is required to complete client authentication" at the line oWinHttp.Send sSOAPRequest.
Following is the code I used.
Please let me know how to provide these certificates to QTP. I have the certificate file(.p12 file) with me.
I am getting error as "Certificate is required to complete client authentication" at the line oWinHttp.Send sSOAPRequest.
Following is the code I used.
Code:
'To reqd xml file
Set fso = CreateObject("Scripting.FileSystemObject")
Set Textfile= fso.OpenTextFile("C:\QTP\UpdateBusinessPartner.txt")
Do while Textfile.AtEndofStream <> True
sSOAPRequest = Textfile.ReadAll()
Loop
Set oWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
'Open HTTP connection
oWinHttp.Open "POST", sWebServiceURL, False
'Send SOAP request
oWinHttp.Send sSOAPRequest
Please let me know how to provide these certificates to QTP. I have the certificate file(.p12 file) with me.