my dog learned polymorphism*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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:

 
 
subject: Webservice client timeout call