1. selvam G
  2. PowerBuilder
  3. Monday, 3 February 2020 16:52 PM UTC

Hi

We have migrated our client server application to PB 2019.

For our new project ,would like to consume a web service.

Web service proxy wizard is not available anymore in PB 19.

Am I missing something?

How do we consume web service in PB 2019 is client server environment?

Any guidance will be much appreciated.

Thanks

Selvam

 

selvam G Accepted Answer Pending Moderation
  1. Wednesday, 5 February 2020 19:51 PM UTC
  2. PowerBuilder
  3. # 1

Hi All

I can able to use HTTPclient to access soap web service.

Attached  XML data which I am getting from getresponsebody of httpclient.

But when I load the data in jsonparser it comes up with invalid value.

Any help please.

Thanks

Selvam 

 

 

Attachments (1)
Comment
  1. Chris Pollach @Appeon
  2. Thursday, 6 February 2020 16:28 PM UTC
If its a complex XML result set, then answer is "no", unfortunately ... sorry.

If the XML represents a simple 2D (row & column) format, then yes, you can us the DataWindow Control's ImportFile() command.
  1. Helpful
  1. selvam G
  2. Thursday, 6 February 2020 20:50 PM UTC
Thanks for your response Chris.

Looks like mine is complex XML. So I am working on PBDOM

Can you please look into the attachment and let me know how can I access the item level(yellow highlighted values)?

I have used BuildFromString function and created the doc but not getting any values from element when I use gettext()

No errors, no exception either.

Any advice or code snippet if available please?

Thanks again

Selvam

  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 7 February 2020 18:58 PM UTC
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 3 February 2020 18:16 PM UTC
  2. PowerBuilder
  3. # 2

For REST Web service please use the new REST client: https://docs.appeon.com/appeon_online_help/pb2019/objects_and_controls/ch02s85.html

For SOAP Web service please use the new HTTP client: https://docs.appeon.com/appeon_online_help/pb2019/objects_and_controls/ch02s39.html

The old SOAP client doesn't support TLS 1.2 so it is not secure.

This community article might be useful if you are trying to call a SOAP Web service: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/236-call-soap-web-services-using-httpclient-object

Comment
  1. selvam G
  2. Tuesday, 4 February 2020 20:50 PM UTC
Oh! Really I have universal edition. It says web service proxy is obsolete.PB 2019 Build 2082
  1. Helpful
  1. selvam G
  2. Tuesday, 4 February 2020 20:52 PM UTC
It still lets me use it, but as you said its better to go with HTTPclient.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 4 February 2020 20:53 PM UTC
Yes, it is obsolete but it is still in the product. So if you really want to use it you can. But we recommend customers use the HTTPClient for security reasons.
  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Monday, 3 February 2020 17:35 PM UTC
  2. PowerBuilder
  3. # 3
Comment
  1. selvam G
  2. Monday, 3 February 2020 18:27 PM UTC
Thanks Mike S, will look into this.
  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.