locked
How to set timeout value for client application RRS feed

  • Question

  • I created a client application that calls a SOAP webservice and may take up to one minute to respond with results. How do I ensure that my client application will not timeout before the webservice does?  And what's the default timeout value for my web application when it invokes a webservice.

    I'm using C# code by the way. Thanks! Henry
    Friday, December 29, 2006 7:12 PM

Answers

  • If you're using .net 2.0 or before then you can set the Timeout property of the webref-generated proxy class.  I'd bet there's something similar for WCF proxies.
    Thursday, January 4, 2007 10:58 PM

All replies

  • I've searched but did not find a concrete answer. I found out the web service I'm calling is set to timeout after 60 seconds. I don't want my web application to time out before then. Any help is appreciated.
    Tuesday, January 2, 2007 10:57 PM
  • If you're using .net 2.0 or before then you can set the Timeout property of the webref-generated proxy class.  I'd bet there's something similar for WCF proxies.
    Thursday, January 4, 2007 10:58 PM
  • I set the timeout property of my webref-generated proxy class and it tested fine. Thanks Andy!
    Tuesday, January 9, 2007 10:37 PM