1. Shweta Jain
  2. PowerBuilder
  3. Monday, 19 October 2020 10:00 AM UTC

Hi,

Currently we are using web service data windows which is using http Protocol but now requirement has been changed and we need to use https Protocol instead of http.


Any one Please Advise me how can I create web service data windows which is using https Protocol?

 

Thanks 

Shweta

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 19 October 2020 16:42 PM UTC
  2. PowerBuilder
  3. # 1

For calling SOAP Web services with HTTPS, you need to use the new HTTPClient and upgrade to PB 2019 R2 or newer.  The old SOAP clients in PB do not support TLS 1.2 security.  Many customers are switching over because of this security issue.  This tech article will help guide you how to use the HTTPClient to make SOAP calls: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/236-call-soap-web-services-using-httpclient-object

For calling REST Web APIs with HTTPS, you need to use the new RESTClient and upgrade to PB 2019 R2 or newer.  Before PB 2017, PowerBuilder did not have any REST client built in.  We added this in 2017 and greatly enhanced it in 2019.  This tech article will help guide you about the features of the RESTClient to make REST calls: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/244-rest-enhancements-in-powerbuilder-2019

By the way, I should clarify that for RESTClient it can automatically populate the DataWindow with the JSON data received from the REST Web API.  But for SOAP, you need to parse the XML data and manually populate it into the DataWindow.  So if any chance you can convert the SOAP to REST, that would make your PB coding simpler.

Comment
  1. Shweta Jain
  2. Tuesday, 20 October 2020 06:44 AM UTC
Thank you for your reply. Now I am going to upgrade pb 2019 R2 version.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 20 October 2020 14:03 PM UTC
You’re welcome. What version do you currently have?
  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.