1. Bjarne Anker
  2. PowerBuilder
  3. Tuesday, 19 March 2019 12:05 PM UTC

Hi.

 

Is it possible to generate a proxy object for a REST API service?

I think this was an option in PB12.5 (File-New-Project-Rest client proxy), but I'm not 100% sure.

This option is not available in Appeon PB 2017 R3, but perhaps it's possible to add it during installation?

 

This would be really helpful, since all of our REST services has a lot of functions and so on.

 

SOAP is of course not an option.

 

Regards,

Bjarne Anker

Bjarne Anker Accepted Answer Pending Moderation
  1. Tuesday, 19 March 2019 12:35 PM UTC
  2. PowerBuilder
  3. # 1

Ok, bummer.

This could be a really useful feature for upcoming versions.

 

Bjarne

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 19 March 2019 17:13 PM UTC
Hi Bjarne, It's really not a lot of coding so there is low chance we would add a wizard for this. Have you tried actually using these new HTTP client feature we added to PB 2017 R3? There are some code samples also on CodeXchange: https://community.appeon.com/index.php/codeexchange/powerbuilder/43-rest-demo-app-for-powerbuilder-2017-r2-and-r3-new-features#41
  1. Helpful
  1. Bjarne Anker
  2. Wednesday, 20 March 2019 07:31 AM UTC
Hi Armeen!



Yes, I've used both HttpClient and JsonParser to sucessfully create both a REST GET and REST POST.

So it should be OK.

Just thought it would be nice to have some extra help in the IDE :)



Thanks for the link - will check it out.



Bjarne
  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Tuesday, 19 March 2019 12:25 PM UTC
  2. PowerBuilder
  3. # 2

Hi Bjarne,

 No there is no REST client proxy generator.  You have to code your own using objects like OAuthClient, RESTClient, HTTPClient, JSONParser, JSONPackage and JSONGenerator objects.

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.