| Author |
Setting timeout
|
Amit G Piplani
Ranch Hand
Joined: Jul 21, 2004
Posts: 82
|
|
Hi, How can i set the timeout for each operation when i am using Apache Axis as Stub Generator from WSDL? Thanks, Amit
|
SCJP,SCWCD,SCBCD,SCDJWS1.4, SCDJWS1.5
|
 |
Rr Kumaran
Ranch Hand
Joined: Sep 17, 2001
Posts: 548
|
|
<org.apache.axis.client.Call object>.setTimeout(<time in milliseconds>
|
RR Kumaran
SCJP 1.4
|
 |
Amit G Piplani
Ranch Hand
Joined: Jul 21, 2004
Posts: 82
|
|
Can i do it without touching the Axis generated code???Axis gives me 2 interface and 2 coincrete implementation class. I want to set timeout without toching these 4 files. Setting the timeout using call object will require modifications in Axis generated Concrete Stub class.
|
 |
Himanshu Jhamb
Ranch Hand
Joined: Aug 01, 2001
Posts: 134
|
|
Hi, Is there a way to set a Timeout for a JAX-RPC call. I am not using AXIS, so the axis api does me no good. I am using the javax.xml.rpc.* classes and do the following steps for calling my web service: 1) Get a ServiceFactory Instance 2) Create the Service Instance using the factory & wsdl etc 3) Create a Call Obj from the service Instance using the operation name 4) Call invoke() on the call object So, where can I specify my timeout if I want to timeout, after say, 30 seconds. This is a synchronous web service call. Thanks!
|
Himanshu Jhamb<br />SCJP2 v1.2 (April 2002)<br />SCJP2 v1.4 (May 2002)
|
 |
Himanshu Jhamb
Ranch Hand
Joined: Aug 01, 2001
Posts: 134
|
|
|
Any suggestions, folks?
|
 |
 |
|
|
subject: Setting timeout
|
|
|