We have a webservice which is not always online, or can only be accessed when a VPN connection is setup.
Is it possible to test the connection, before executing the real POST? Now th POST takes about 40 seconds before an error is thrown. Using SetRequestTimeout and STOP-AFTER does not seem to help.
Code:
oHttpRequest = RequestBuilder:Post(this-object:URI, oRequestBody) :ContentType(this-object:ContentType) :AddHeader("Connection":u, "Keep-Alive":u) :AcceptXml() :Request. oHttpResponse = ClientBuilder:Build() :SetRequestTimeout(10) :Client :Execute(oHttpRequest).
Thank you Peter. I tested this and it works. I can use this workaround.
I also logged a ticket at Progress Support.