Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating Axis client class with global timeout

Status
Not open for further replies.

liorza

Programmer
Mar 3, 2004
27
0
0
US
Hello,
I am using Axis 1.1 and firing the ant task (axis-wsdl2java) to generate the client classes. Is there a way to update the axis configuration timeout value. I would like to modify the global timeout for the axis client. I would like to avoid updating the auto generated classes like in the example below:

“How do I set a timeout when using WSDL2Java stubs?
There is a setTimeout method on the org.apache.axis.client.Stub class, which is the class all emitted stubs extend.
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 miliseconds


I think there should be a way to update the following CONNECTION_TIMEOUT_PROPERTY of org.apache.axis.client
Class Call

thoughts?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top