File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Web Service Client - Initiate another Service if no Reponse after 60 sec Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service Client - Initiate another Service if no Reponse after 60 sec " Watch "Web Service Client - Initiate another Service if no Reponse after 60 sec " New topic
Author

Web Service Client - Initiate another Service if no Reponse after 60 sec

vijay gandra
Greenhorn

Joined: Jan 29, 2012
Posts: 2
I have a situation where i have to write a Web Service client. I have to wait for 60 seconds to get the response if no response comes because of network error or something, i have to initiate another method of Web Service. How to do this it is urgent for me.
vijay gandra
Greenhorn

Joined: Jan 29, 2012
Posts: 2
I have used the following code for this

set the TIME_OUT for 6 secounds

after this time if no response comes i got an exception java.net.SocketTimeoutException: Read timed out
so in catch i did like this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Service Client - Initiate another Service if no Reponse after 60 sec
 
Similar Threads
Web service and threads
How enable WebService data type inheritance?
.Net WS from Java
Invoking webservice from another webservice - Axis2
long running service call and tracking completion