Posted: 23 Oct 2016 21:25 EDT Last activity: 24 Oct 2016 13:26 EDT
Response timeout with Connect-SOAP
I want to test connect-SOAP response timeout. I have changed the timeout in Connect-Soap rule with 0 and -1, still the service is returning results without timeouts.I even tried customizing InvokeAxis2 with hardcording the timeout value to 0 and -1. still didnt work. can you help me with anyother ways to test and fix how the system should behave when there are response time outs.
Response timeout which is being set is SO_TIMEOUT, which is the time for which readcall on the inputstream associated with the socket is blocked, meaning it will wait for the specified amount of time in milliseconds for a response.
If the specified time is '0' it will wait for an unlimited amount to time, which is why you are not able to test it.
Mention a positive integer which is less enough, a time period which is not adequate to receive response from the server.
Example: Let us say your service will typically take around 1 second (1000 milli seconds) to respond, set the response timeout to something less than 1000.
Hope this helps, let me know if you are facing any difficulty in understading my explaination.