Hi there,
Powerbuilder 2019 R3 build 2728.
In our application I've written a custom httpclient class that is a descendant of the standard HttpClient class. In my custom class I've put in a function that takes in, as args, the URL, Headers, Data, and method (post or get or put or delete etc ), sets the headers, performs a powerbuilder sendRequest( ), loads the response, checks the response status code, and does error handling.
I am having a problem calling one of our SOAP web services located on a server on our network. I need to make 8-10 calls to this service in rapid succession, and the sendRequest( ) call will fail with -6 (unsupported charset) randomly throughout the 8-10 calls (but usually on the 2nd or 3rd call at least). The rest succeed.
The service is expecting the following headers:
Content-Type: text/xml; charset=utf-8
I can confirm that this is the same as what is being loaded using SetRequestHeaders( ), and SetRequestHeaders( ) is not failing.
I have tried the following so far (nothing has made a difference):
- Destroying a re-creating the HttpClient before each call to the service.
- Sleeping for 60 seconds between calls.
- Using both HTTP and HTTPS
I have used a TCP packet sniffer to trace the calls, and when the service call works I can see the packets. Whenever the sendRequest( ) returns -6 I do not see any packets appearing in my trace tool.
My gut tells me that this is not a Powerbuilder problem, and probably something to do with my service or the comm links between the client and the server, but I figured I'd ask here anyways. What's throwing me off is the sendRequest returning -6.
Thanks PB gurus.