Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webservice error "Certificate is required to complete client authentication"
#1
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  OTA Client Cleanup Test? Autobot 0 1,906 08-25-2015, 11:11 AM
Last Post: Autobot
  Webservice request without object repository anthony1carr 1 2,785 07-12-2013, 09:37 AM
Last Post: Staff
  Automate Client Server based application vijayranjan1983 1 2,886 06-20-2013, 11:58 AM
Last Post: Sathiya
  QTP webservice not valid weirise 0 2,301 10-24-2012, 02:19 PM
Last Post: weirise
  [split] Suggestion required dtest 0 2,252 06-20-2012, 03:31 AM
Last Post: dtest

Forum Jump:


Users browsing this thread: 2 Guest(s)