-
DIPANJAN DUTTA
- PowerBuilder
- Thursday, 18 September 2025 11:26 AM UTC
Hello All,
Recently, I encountered an challenge while integrating a SAP SOAP Webservice with PowerBuilder 22 application using the HTTPClient object. Here I am getting an error no -16 that means "Server requires client certificate".
This error indicates that the server expects a client-side certificate to authenticate the request. Without it, the connection is rejected.
I am calling a SAP SOAP Webservice in PowerBuilder 22 using HTTPClient.
To address this, I installed a public certificate (.cer file) and attempted to configure it using the SetClientCert
method in PowerBuilder. Here's the code snippet I used:
ls_certSN = "03de4b55000000000000000008700"
ls_certIssue = 'CN = devsap-abap.test.com~r~nO = Test Services, Inc.~r~nL = Richmond~r~nS = Virginia~r~nC = US'
li_ret = lnv_HttpClient.SetClientCert("Trust", ls_certIssue, ls_certSN)
The SetClientCert function returned 1, which means success. However, despite this, the same error persisted when I tried to invoke the service.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.