I am facing read time out when pulling data using web service i am using axis2 as the client , can any one advice on steps to prevent it .
error message displayed is
java.net.SocketTimeoutException: Read timed out
Re:Help preventing SocketTimeOut in WebService
Jarek Gawor wrote:
Greeter greeter = service.getPort(Greeter.class);
javax.xml.ws.BindingProvider binding = (javax.xml.ws.BindingProvider)greeter;
binding.getRequestContext().put(org.apache.axis2.transport.http.HTTPConstants.SO_TIMEOUT, new Integer(900000));
Axis2 1.4.1: HTTP Transport - Timeout Configuration
It seems that some versions of Axis2 may have had problems picking up the timeout settings from the properties.
[jira] Updated: (AXIS2-2022) setting HTTPConstants.SO_TIMEOUT option doesnt seems to work