axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Ashton <>
Subject [Axis2][1.0] Setting a timeout for a web service call made via WSDL2Java xmlbeans generated stub
Date Wed, 24 May 2006 21:59:36 GMT

I have used WSDL2Java (with the xmlbeans data binding).  Sometimes
the web service call takes over 60 seconds, so I want to be able to
change the call timeout setting (without having to make any changes
to code generated by WSDL2Java).  I tried the following (setting a
very short timeout to check whether I was actually updating the
timeout), but seemingly this had no effect.

Can anyone tell me how I can change the timeout without having
to change any generated code?

Thanks, Paul.

     TPServiceStub binding = new TPServiceStub("http://dev03/devtest204/Services/TPService.asmx");

     Options axisOptions = binding._getServiceClient().getOptions();

     .....  setup gsrd to contain the parameters

Paul Ashton
iCom Project Leader
Christchurch, New Zealand
Phone: +64 3 3669669
Fax: +64 3 3791091

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message