Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > set connection timeout when calling to webservice method

Reply
Thread Tools

set connection timeout when calling to webservice method

 
 
tony
Guest
Posts: n/a
 
      02-27-2007
hi.

when i call to web service method, while there is no internet connection,
it takes like 40 secs- 2 minutes before i get answer.

can i change the timeout so, incase of no internet connection, the method
return in 10 second ? (for example)

thanking in advance.


 
Reply With Quote
 
 
 
 
Manish Bafna
Guest
Posts: n/a
 
      02-28-2007
Hi,
Service1 obj = new Service1();
obj.TimeOut = -1; // infinite time out.Here you can set your connection time
out
--
Thanks and Regards.
Manish Bafna.
MCP and MCTS.



"tony" wrote:

> hi.
>
> when i call to web service method, while there is no internet connection,
> it takes like 40 secs- 2 minutes before i get answer.
>
> can i change the timeout so, incase of no internet connection, the method
> return in 10 second ? (for example)
>
> thanking in advance.
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem! webservice.htc calling nonsecure webservice from a secured ssl https webpage batista ASP .Net 1 01-26-2006 12:05 PM
WebService ignoring timeout properties? (Server was unable to process request. --> Timeout exired) Lars-Erik Aabech ASP .Net Web Services 3 04-29-2005 02:21 AM
Timeout when calling a webservice from C# subha ASP .Net Web Services 3 11-16-2004 09:46 PM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
Timeout Problem of calling the webservice VincentWong ASP .Net Web Services 0 12-17-2003 09:11 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57