Micro Focus QTP (UFT) Forums
Webservice error "Certificate is required to complete client authentication" - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Webservice error "Certificate is required to complete client authentication" (/Thread-Webservice-error-Certificate-is-required-to-complete-client-authentication)



Webservice error "Certificate is required to complete client authentication" - pranjalipalkar - 01-07-2013

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.
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.