1. Joshua Woon
  2. PowerBuilder
  3. Friday, 18 January 2019 06:13 AM UTC

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?

Roland Smith Accepted Answer Pending Moderation
  1. Monday, 21 January 2019 02:04 AM UTC
  2. PowerBuilder
  3. # 1

I have a WinHTTP example using the API functions. Perhaps you could add the certificate handling functions.

http://www.topwizprogramming.com/freecode_winhttp.html

 

Comment
  1. Terry Schaff
  2. Monday, 16 March 2020 20:42 PM UTC
Have similar problem as stated above:

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

  1. Helpful
  1. Mark Lee @Appeon
  2. Tuesday, 17 March 2020 03:16 AM UTC
Hi Terry,



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,
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.