1. ATK Gimmy Susan
  2. PowerBuilder
  3. Monday, 3 June 2019 12:47 PM UTC

Good morning Guru

We have been using, with satisfaction, a Web service written in Powerbuilder for 2 years.

- This ws is called by several PB programs passing a structure as a parameter.

- This Ws returns a double. Now I need to call this ws also from a Java program.

 

Perhaps a stupid and trivial question:

Is it possible to re-call this web services from Java (and pass it a structure) or do I have to intervene and change the type of the incoming parameter?

Does the Web service written in PB recognize it?

 

TY

 

ps.

For the moment I cannot convert the ws to Pb2019 c #
Accepted Answer
Kevin Ridley Accepted Answer Pending Moderation
  1. Monday, 3 June 2019 14:17 PM UTC
  2. PowerBuilder
  3. # Permalink

Java won't know what a PB structure is.  You can overload the function in the service to handle more basic types that java understands.  That way your original function will still work with a PB client, but your java client can use the overloaded function call.  Try to keep datatypes in mind when creating new services.

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 3 June 2019 17:44 PM UTC
  2. PowerBuilder
  3. # 1

Extending what Kevin suggested, create a function that can be called by Java and in that function populate a structure and pass it to the original function.

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.