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