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
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