This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes Time out  in >>  org.apache.axis.client.Stub ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Time out  in >>  org.apache.axis.client.Stub ???" Watch "Time out  in >>  org.apache.axis.client.Stub ???" New topic
Author

Time out in >> org.apache.axis.client.Stub ???

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
Im using a WSDL2java for generating files to access a web service.
Some times i get a timeout exception.

How do i resolve this timeout.

using the org.apache.axis.client.Stub there is a setTimeout(int) property. Can setting this property resolve my problem.


Money for nothing and Java for Free
SCJP, SCWCD
stefan bungert
Greenhorn

Joined: Oct 29, 2005
Posts: 5
It depends on the reason why this Timeout occurs.

If the network traffic just needs time, you can adjust the timeout with the setTimeout() method.

If the server is unreachable you can set it to 5 minutes but you will still get a timeout

ok?

stefan
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Is it the actual WSDL2Java part which is timing out? If so, you can provide a "-T 600" to extend the default timeout, as we have had to do.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
If you still can't figureout why timeout occurs!!..better download that wsdl and feed it locally to wsdl2java.


Spritle Software Blogs
madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
Originally posted by David O'Meara:
Is it the actual WSDL2Java part which is timing out? If so, you can provide a "-T 600" to extend the default timeout, as we have had to do.


Thanks..
Its not the WSDL2java thats timing out but when i access a webservice on a remote server this happens sometimes.
I wanted to know if this is happening because the server has too much traffic on it or is it some other reason.

Will the timeout property help me solve the problem.
Another thing when i invoked the geTimeout() on the application i got 0. what does that mean.

Is there any way to test the timeout property. Because the webservice is a live service i have no was to see if the setTimeout will actually resolve my problem.

thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Time out in >> org.apache.axis.client.Stub ???