I have a web service which does quantitative model checking and an Axis2 client which calls the web service. The web service can take a lot of time (more than a minute). The client works fine when the model is small and service takes less than 30 seconds. But when I call the web service with a larger model I get the AxisFault exception with the message "Read Timed Out". This happens about 30 seconds into the call. Is there a way I change this timeout time to a larger value.
I found it out myself. I used this command
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(120000);
Relevant info -
_getServiceClient()
getOptions()