1. Amit Sharma
  2. PowerBuilder
  3. Wednesday, 7 July 2021 14:48 PM UTC

Hi We have migrated to Appeon PB 2019 R2(Build 2328) a year ago. I am now trying to explore new features. First one was calling web service without using old proxy webservice object so when I declare

AppeonWebServiceComponent caller

I get compile error 

C0001: Illegal data type

 

Which library I am missing?

Amit Sharma Accepted Answer Pending Moderation
  1. Wednesday, 7 July 2021 16:59 PM UTC
  2. PowerBuilder
  3. # 1

Thanks. I will read thru before asking more question.

What is AppeonWebServiceComponent  ? Can it not be used?

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 7 July 2021 17:08 PM UTC
Are you using PowerBuilder or PowerServer? I assumed PowerBuilder because you posted in PowerBuilder Q&A instead of PowerServer Q&A. For PowerBuilder client/server projects, you should NOT use AppeonWebServiceComponent. That is something for PowerServer 2020 and older versions. PowerServer 2021 and newer support directly calling Web Services using HTTPClient or RESTClient.
  1. Helpful
  1. Amit Sharma
  2. Wednesday, 7 July 2021 17:11 PM UTC
Sorry about my ignorance. Thanks for clarification.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 7 July 2021 18:57 PM UTC
No problem. Hope this helps!
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 7 July 2021 16:52 PM UTC
  2. PowerBuilder
  3. # 2

To call a REST API you should use the RESTClient object.  Also, REST APIs usually return JSON formatted data, and for JSON format you need to encode/decode URLs and encode/decode blob data types.

I recommend carefully going through the REST Bootcamp, study the code examples, etc.

REST Bootcamp - https://www.appeon.com/developers/library/videos/rest-bootcamp.html

REST Enhancements in 2019 - https://www.appeon.com/developers/library/videos/enhanced-restclient-powerbuilder-2019.html

Code examples - https://community.appeon.com/index.php/codeexchange/powerbuilder/271-rest-client-enhancements-sample-code-from-elevate-2020

Comment
There are no comments made yet.
Amit Sharma Accepted Answer Pending Moderation
  1. Wednesday, 7 July 2021 16:23 PM UTC
  2. PowerBuilder
  3. # 3

I am trying to use REST API. I haven't tried SOAP with HTTPClient yet since it's migrated from old and working fine with web proxy.

 

Yes migration to R3 is also planned in next couple of months.

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 7 July 2021 16:11 PM UTC
  2. PowerBuilder
  3. # 4

Hi Amit,

Are you calling a SOAP or REST Web service?

If SOAP, are you using HTTPCliet object and following this tech article?  https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/236-call-soap-web-services-using-httpclient-object

By the way, I recommend upgrading from R2 to R3.  R3 is a long-term support version and it has many new features.  https://www.appeon.com/developers/powerbuilder-release-history.html

 

Best regards,
Armeen

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.