• 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 in a web service based connection

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am facing an issue. I am calling a web service from a stub that has been provided by the web service publisher. Now the issue is that once a connection is established my thread waits for the response from the service and till the response is not received it doesn't timeout. I want to set timeout for this socket so that if response is not received in stipulated timeframe I should be able to go for further processing.
[Important is that I don't want that connection is terminated from my side but is still running from the client side]
I have seen in the stub source by decompining but I cannot find any setTimeout() method in the stub where it is being initialized.
Some queries :
1> Do we have certain steps to establish a connection with a web service that is common for all web services or this is different for all web services.
2> If this is different for all web services where can I find how the connection is established???

Thanks in advance for support.
 
A Dhawan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anything on the above topic.....
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic