File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vijay gandra
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic