aspose file tools*
The moose likes Web Services and the fly likes Read Time Out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Read Time Out" Watch "Read Time Out" New topic
Author

Read Time Out

Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83
Hi,

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


SCJP 1.4,SCWCD5, SCBCD5
Thanks, Santhosh
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Might want to try this:
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Read Time Out