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.
Java – AxisFault Read Timed Out
axisjavatimeout
Related Topic
- Nginx proxy_read_timeout vs. proxy_connect_timeout
- Timeout error in all the apps for every call to smtp servers
- Php – Varnish 503 error after exactly 60 seconds… how to change this timeout value
- Ssh – Increase Connection Timeout for “ssh: connect to host xxxxx port 22: Connection timed out”
- Tomcat – First REST call slow on Apache server
Best Answer
I found it out myself. I used this command
stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(120000);
Relevant info -
_getServiceClient()
getOptions()