permaculture playing cards
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

Read Time Out

Santosh Raveendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 83

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 Read timed out

Thanks, Santhosh
Peer Reynders

Joined: Aug 19, 2005
Posts: 2933
Might want to try this:
Re:Help preventing SocketTimeOut in WebService

Jarek Gawor wrote:
Greeter greeter = service.getPort(Greeter.class); binding = (;
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
I agree. Here's the link:
subject: Read Time Out
It's not a secret anymore!