Web Service timeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nossa
    New Member
    • Jun 2007
    • 2

    Web Service timeout

    I have a web service where I would like to allow the user to set a timeout by say passing a value to a [WebMethod] function. I know I can set the proxy.Timeout but this isn't ideal for my application.

    The undernoted article implies that I should be able to use this.Timeout within the web service itself however the intellisense doesn't show Timeout in the context of the System.Web.Serv ices.WebService . I'm a novice with regard to web services so any help would be appreciated. Thanks

    http://msdn2.microsoft .com/en-us/library/ms998562.aspx#s calenetchapt10_ topic14
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    If you want to set the timout for your web service, you must use the proxy of that web service.

    this.timeout also do the same only.

    Whats your problem when set the timeout using a getter and setter method of a property ?

    :)

    Comment

    • Nossa
      New Member
      • Jun 2007
      • 2

      #3
      Originally posted by radcaesar
      If you want to set the timout for your web service, you must use the proxy of that web service.

      this.timeout also do the same only.

      Whats your problem when set the timeout using a getter and setter method of a property ?

      :)
      Thanks for replying. One of the things I'd like clarified is why, inside the service I'm unable to do
      Code:
      this.Timeout
      ? If I attempt to add the code it doesn't recognise TimeOut. I'm not sure what you mean in the last line of your reply - within the web service there doesnt appear to be anything I can do to programmaticall y set a timeout. One option is to use delegates with a BeginInvoke and use an IAsyncResult AsyncWaitHandle but this seems to me to be excessive.

      Comment

      Working...