1. shareef mon
  2. PowerBuilder
  3. Wednesday, 31 March 2021 05:03 AM UTC

Hai all,

I am recently Installed Appeon Powerbuilder R3 and planning to migrate from pb 2012 to 2019. 

I just asking about the webservice calling method in R3. Anybody can explain with script ?

Thanks to all.

Kevin Ridley Accepted Answer Pending Moderation
  1. Wednesday, 31 March 2021 10:55 AM UTC
  2. PowerBuilder
  3. # 1

What do you want to know about it?  You can call both SOAP and REST webservices using PB2017 or PB2019.  You will want to look at objects like the HTTPClient, RESTClient, OAuthClient, JSONParser, JSONPackage and JSONGenerator  depending what type of web service you want to call.  This may help you get started:

https://docs.appeon.com/pb2017r2/whats_new/ch01s01.html

https://www.youtube.com/watch?v=_sMpCIOZap0

 

If you have any specific questions, let us know.

Comment
  1. shareef mon
  2. Wednesday, 31 March 2021 12:11 PM UTC
Actually there are only one webservice link.



I used this link in pb12 in the proxy-soap method and work it perfectly. But, webservice team changed the protocol into tls1.2. so, pb12 not supporting that protocol. So, result getting blank and throwing errors.



In pb12, while we deploy the proxy, it will generate a structure. in this structure they are providing no of functions. To that functions we need to apply some username, password....etc. But, my doubt is while we use httpclient method will get there all functions ?
  1. Helpful
There are no comments made yet.
shareef mon Accepted Answer Pending Moderation
  1. Wednesday, 31 March 2021 11:54 AM UTC
  2. PowerBuilder
  3. # 2

Actually there are only one webservice link. 

I used this link in pb12 in the proxy-soap method and work it perfectly. But, webservice team changed the protocol into tls1.2. so, pb12 not supporting that protocol. So, result getting blank and throwing errors.

In pb12, while we deploy the proxy, it will generate a structure. in this structure they are providing no of functions. To that functions we need to apply some username, password....etc. But, my doubt is while we use httpclient method will get there all functions ?

Comment
  1. shareef mon
  2. Thursday, 1 April 2021 07:39 AM UTC
Already checked with Registry change. but it is failed. From 2019R3 checked through datawindow webservice method. But getting messagelike "Error message: The request was aborted: Could not create SSL/TLS secure channel."

How can solve with httpclient method ?. Bcz, while access wsdl , they are providing some functions. selecting one fuction and giving argument values. this is the way.

This issue can solve with HTTPClient method ?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 1 April 2021 15:03 PM UTC
The new HTTPClient object class feature does support TLS 1.2 and you can use it to call a SOAP web service. The only downside is that you will need to parse the XML return data stream using PB's PBDOM object class to get at the XML returned values.
  1. Helpful
  1. Arnd Schmidt
  2. Thursday, 1 April 2021 20:45 PM UTC
For 32-Bit Applications on Windows 10 64-bit do not ignore the WOW6432Node hive.

https://docs.microsoft.com/de-de/mem/configmgr/core/plan-design/security/enable-tls-1-2-client

  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Wednesday, 31 March 2021 12:12 PM UTC
  2. PowerBuilder
  3. # 3

There's a little more coding involved when using the HTTPClient, but you will have access to all the same methods.  In this case, your best bet is to use a tool like Postman (or SoapUI).  First consume the WSDL with one of the tools I mentioned, then get each call working in Postman/SoapUI.  Once it's working, you can see exactly what the HTTP request and response look like, and you can duplicate that with the HTTPClient.  Many web service providers still offer their services in SOAP but will often provide those same services in REST as well.  Might want to check with the service provider if you find REST easier to work with.  Either way, you will be able to consume from PB2019 R3.

shareef mon Accepted Answer Pending Moderation
  1. Thursday, 1 April 2021 07:48 AM UTC
  2. PowerBuilder
  3. # 4

While we use this webservide, they providing some functions. each functions requesting to provide some argument values. How can work with httpclient method ?

picture a

While we call werservice they providing some functions. 

picture b

while use datawindow - webservice(source) - giving arguments.. while retrieve getting message. this in 2019R3

Thanks to all

Attachments (2)
Comment
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.