This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 2922
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