Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservice client timeout call

 
Arundhathi Menon
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Arundhathi Menon
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rectified the problem.

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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic