wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice client timeout call" Watch "Webservice client timeout call" New topic
Author

Webservice client timeout call

Arundhathi Menon
Ranch Hand

Joined: Jan 14, 2004
Posts: 113
Hi,

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 :

[code]
for(...)
{
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.

Regards
Menon



SCJP , SCWCD , SCBCD , SCDJWS
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:

 
wood burning stoves
 
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?