Question
3
Replies
1919
Views
United Health Group
Posted: October 23, 2016
Last activity: October 24, 2016
Closed
Solved
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.
Pega version: 7.1.6
Thanks in advance
Hi Shashikala,
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.