• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set timeout for a webservice  RSS feed

 
tony altaico
Greenhorn
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?

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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!