This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
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???