webservice, make thread wait for ok

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default webservice, make thread wait for ok

    hi,
    we're working on a project where we spawn a thread which calls a
    webservice, stock check, sometimes the stock checker takes too long to
    respond, and our thread dies out before the response can be received,
    is there anyway to make the thread wait longer to get the response,
    assuming thread is dying from .net framework possibly killing it due it
    just waiting for a delayed response. any suggestions?

    soni29 Guest

  2. Similar Questions and Discussions

    1. How to make function wait for HTTPService completion
      Dear group, I have a function that creates a new HTTPService(), sends the request and then creates a new ComboBox() intended to display the data...
    2. Sync Webservice call that MUST wait for Distributed System to process
      I have a distributed system that processes documents. There currently is an Async Webservice in place and this works fine. My customer is...
    3. Make movie wait to load in an html page
      Hello I'm pretty new to Flash, but I've created a small movie (banner style) that plays in an html page. Everything works O.K. except that I'd...
    4. Call to webservice doesn't wait to return
      Hi All, I have created a ASP.NET web service with a web method. This method retrives data from SQL Server and returns it as an XML string. Now...
    5. Asynchronous webservice call, UI thread issue in asp.net
      Hi, I am calling a webmethod asynchronously using a callback delegate. I have implemented begin and end webmethods inside my webservice class....
  3. #2

    Default Re: webservice, make thread wait for ok

    Use an appropriate value for the Timeout property of your web service proxy.

    Also, this looks like a great opportunity to use the web services
    asynchonously.
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcreatingasynchronousxmlwebservicemethod.asp[/url]

    Mujtaba.

    "soni29" <soni29@hotmail.com> wrote in message
    news:1103127489.784006.309460@c13g2000cwb.googlegr oups.com...
    > hi,
    > we're working on a project where we spawn a thread which calls a
    > webservice, stock check, sometimes the stock checker takes too long to
    > respond, and our thread dies out before the response can be received,
    > is there anyway to make the thread wait longer to get the response,
    > assuming thread is dying from .net framework possibly killing it due it
    > just waiting for a delayed response. any suggestions?
    >

    Mujtaba Syed Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139