1. Rajagopal VV
  2. PowerBuilder
  3. Sunday, 9 October 2022 02:24 AM UTC

We are using powerbuilder 2021. We migrated from powerbuilder11.5 to powerbuilder2021. We are in middle of converting web calls. We wanted to use HttpClient as recommended by Appeon. I am calling a url which is wdsl has a function requires 3 parameters and 1 more parameter to return value. If you happen to have any experience or similar case used successfully can you please post a sample example? I appreciate your help 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Sunday, 9 October 2022 02:59 AM UTC
  2. PowerBuilder
  3. # 1
Comment
  1. Rajagopal VV
  2. Thursday, 3 November 2022 18:01 PM UTC
Hello Chris:

Sorry for late replay as I got busy with different issue. I looked at this article and I have created same code in PB2021 from button event. Using the sample code for the web service and pb code I’m only able to successfully call the ‘Add’ web service method if the call is being made on that same machine the web service is on. When I attempt the ‘Add’ call from a different machine I always get an ‘Internal Server Error’ and the text points to ‘/Add’ part of the url (ls_url ='http://azstdevpb1/WebService/WebService.asmx/Add'). The getresponsecode was returing 500 instead of 200. Do you happen to have any sample code where I wanted to deploy webservice in AppServer and call that form client machines.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 3 November 2022 18:39 PM UTC
Hi Raj;

You might need to adjust the data stream to make the other methods work. I would suggest using PostMan software to see if that works with the Web Service(s). If so, take note of the HTTP settings that it is using and PowerScript accordingly.

FYI: https://www.postman.com/pricing

Regards ... Chris
  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.