I want to set a timeout for less number of data coming from webservice as well as larger number data coming from same webservice, in this case whether it is advisable to make the change by writing a logic to set 2 timeouts , for example for less number of data coming from webservice1 set timeout to default 1 min in Jaxws and for larger number of data from the same Webservice1 set the timeout to 3 mins? Whether it makes sense or it is better to set a flat timeout , common timeout for the both less and large data as a whole to 3 mins? this will be irrespective of the data load.
If the option 2 (flat timeout value) is better , what will happen if we get the response for less number of data in seconds , whether it will have any side effects as we have set the timeout to 3 mins? Which is the best option we need to choose here. Thanks in advance.