This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis1.2RC2 - set timeout doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Axis1.2RC2 - set timeout doubt" Watch "Axis1.2RC2 - set timeout doubt" New topic
Author

Axis1.2RC2 - set timeout doubt

Ramya Iyer
Ranch Hand

Joined: Jul 29, 2003
Posts: 66


This sets the timeout for establishing connection or to get back the response from the webservice?

If time to establish is 3 seconds, will it wait for 12 seconds for response before timing out or will it wait for 12 seconds?

Regards,
Ramya.
Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
Yes, the API documents are 'clear' on that .

Call.setTimeout() populates the timeout property in org.apache.axis.MessageContext.

The (axis-1.4) API documents seem to say this is a maximum amount of time to wait, so that if a reply comes in before this maximum threshold has expired, then the method would not block for the remainder of the unused timeout.

/**
* Maximum amount of time to wait on a request, in milliseconds.
*/
private int timeout = Constants.DEFAULT_MESSAGE_TIMEOUT;


where DEFAULT_MESSAGE_TIMEOUT is 10 minutes.
public static final int DEFAULT_MESSAGE_TIMEOUT=60*1000*10;


Error: Keyboard not attached. Press F1 to continue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis1.2RC2 - set timeout doubt
 
Similar Threads
How to specify a Transaction Timeout in a Web Application
Set Timer
Kill an HttpURLConnection
session time out in application after specific time
Specfying TimeOut for a Request