*
The moose likes Web Services and the fly likes Setting timeout in a web service based connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Setting timeout in a web service based connection" Watch "Setting timeout in a web service based connection" New topic
Author

Setting timeout in a web service based connection

A Dhawan
Greenhorn

Joined: Jun 12, 2012
Posts: 2
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

Joined: Jun 12, 2012
Posts: 2
Anything on the above topic.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting timeout in a web service based connection