Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set timeout for a webservice  RSS feed

tony altaico
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to set timeout value for a webservice. I tried many samples from internet but I could not achieve.This is my sample code which tries to set timeout value. Could you please tell me if I am doing wrong or If I have to do an additional think to set timeout?

+ host + ":" + port
+ "Web/Services/dayServices");
dayServices = dayServicesServiceLocator.getdayServices();
((Stub) posLoaderIntraDayServices).setTimeout(60000);

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!