• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting timeout

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
How can i set the timeout for each operation when i am using Apache Axis as Stub Generator from WSDL?

Thanks,
Amit
 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<org.apache.axis.client.Call object>.setTimeout(<time in milliseconds>
 
Amit G Piplani
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any suggestions, folks?
reply
    Bookmark Topic Watch Topic
  • New Topic