Requires Free Membership to View
According to the Axis FAQs (http://ws.apache.org/axis/faq.html#faq17), you should set the property within the stub as follows:
Here is how to set the timeout given a service named Foo:
FooServiceLocator loc = new FooServiceLocator(); FooService binding = loc.getFooService(); org.apache.axis.client.Stub s = (Stub) binding; s.setTimeout(1000); // 1 second, in milliseconds
The default timeout in Axis 1.1 and later is 60 seconds. Axis 1.0 did not have a default timeout (i.e. it defaulted to 0). This timeout value is set on the HTTP socket and is not a connection timeout, which requires implementation we do not have as of Axis 1.1.
This was first published in September 2004

Join the conversationComment
Share
Comments
Results
Contribute to the conversation