This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Chron jobs?
for loop in paint method........
WLS ASP interop thru' webservices
Swing Timer and Date Class thread question...
Does a thread keep its locks if it goes to sleep?