I have trying to connect to our external party using the HTTPClient but it requires a Client Certificate to be included. How do I go about setting the certificate in the HTTPClient?
- Joshua Woon
- PowerBuilder
- Friday, 18 January 2019 06:13 AM UTC
- Page :
- 1
There are no replies made for this question yet.
However, you are not allowed to reply to this question.
However, you are not allowed to reply to this question.
I have trying to connect to our external party/vendor using the HTTPClient (SOAP call) but it requires a Client Certificate to be included. How do I go about setting the certificate in the HTTPClient?
Wondering if I need to use the new OAuth in PB2017 R3?
Any idea/example on how to call a SOAP service from PowerBuilder with a client certificate from a file without using an external application?
Tom Jiang's answer was:
Unfortunately the new objects HTTPClient and RESTClient don't support this feature. You may have to approach the issue with a different method.
Can you suggest a different method?
Thank You,
Terry Schaff
I have read a few posts and answers from TomJiang@Appeon and Chris Pollach@Appeon
You can refer to the following link for details:
https://docs.appeon.com/appeon_online_help/pb2017r3/application_techniques/ch19s01.html
If you want to use HTTPClient object with Basic Authentication, you can refer to the sample code in ‘Example 2 (using HTTPClient)’.
As for other authentications, we suggest you use the OAuthClient object. You can refer to the sample code in ‘Example (using OAuthClient)’ or ‘Example 3 (using OAuthClient and HTTPClient)’.
In addition, if you are using PB 2017 R3, it is recommended that you upgrade it to Build 1915 or PB 2019 Build 2170 because these associated functionalities have been enhanced.
Regarding how to call a SOAP service from PowerBuilder step by step, you can also refer to the following:
https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/236-call-soap-web-services-using-httpclient-object
Regards,