aspose file tools*
The moose likes Web Services and the fly likes Webservice client timeout call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice client timeout call" Watch "Webservice client timeout call" New topic

Webservice client timeout call

Arundhathi Menon
Ranch Hand

Joined: Jan 14, 2004
Posts: 113

I am invoking a webservice in a for loop. The service is synchronous and I have tried applying a thread sleep so as to wait before I make the next call in the loop :

WS client call

Thread sleep

I still get a read time out , the first couple of iterations go thru fine though.

Please let me know what can be done.

Thank you.


Arundhathi Menon
Ranch Hand

Joined: Jan 14, 2004
Posts: 113
Rectified the problem.

You can set the time out on the client side in the following manner:

I agree. Here's the link:
subject: Webservice client timeout call
Similar Threads
Does a thread keep its locks if it goes to sleep?
Swing Timer and Date Class thread question...
WLS ASP interop thru' webservices
Chron jobs?
for loop in paint method........