1. Hannu Pikkarainen
  2. PowerBuilder
  3. Wednesday, 15 May 2024 14:18 PM UTC

Hi,

I have created an application that uses SOAP interface about 15-20 years ago and it has worked without problems. I created service and proxies from WSDL and in code used it

SoapConnection conn
conn = create SoapConnection

rval = conn.CreateInstance(px_service,"jtj_jasentuontirajapintaservice",str_endpoint) 

Now I'm trying to convert it to use HTTPClient using code

inv_http = CREATE HTTPCLIENT
rval = inv_http.CreateInstance(px_service,"jtj_jasentuontirajapintaservice",str_endpoint)

But the compiler complains Unkown function name : createinstance.

What am I doing wrong?

BR, Hannu

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 16 May 2024 14:18 PM UTC
  2. PowerBuilder
  3. # 1

Hi Hannu;

  You will now need to use the PBDOM feature to parse / build the XML data stream.

Regards .. Chris

 

Comment
There are no comments made yet.
Hannu Pikkarainen Accepted Answer Pending Moderation
  1. Thursday, 16 May 2024 04:53 AM UTC
  2. PowerBuilder
  3. # 2

Thanks for the advices, they were helpful.

One more problem : Is it possible to use my old web service proxies and extract the XML from them? Or do I have start using PBDOM tools to create the XML?

BR, Hannu

Comment
  1. Hannu Pikkarainen
  2. Thursday, 16 May 2024 06:15 AM UTC
Actually I have created variables based on web proxies and populated them with data. Problem is how to convert the data in then into text so I could merge it with the message body.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 15 May 2024 16:23 PM UTC
  2. PowerBuilder
  3. # 3
Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 15 May 2024 14:46 PM UTC
  2. PowerBuilder
  3. # 4

Hi.

That's because httpclient doesn't have such a function. You created your object using the create statement. Now you are ready to do all the settings needed to the client, and the do a request (using probably sendrequest function). You would then expect a response, again, using using one of the getresonse* functions.

I suggest you read carefully the documentation provided for the httpclient (HTTPClient object - - Objects and Controls (appeon.com)).

Andreas.

Comment
  1. Hannu Pikkarainen
  2. Wednesday, 15 May 2024 14:55 PM UTC
Previously I have used that proxy to create the XML, which is quite complicated one. Is there any I could still use that proxy with HTTPClient?
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 15 May 2024 16:57 PM UTC
No, HTTPClient doesn't support that. Please follow the documentation links that Andreas and Chris provided to you.
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.