handling exceptions in asynchronous web service calls

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

  1. #1

    Default handling exceptions in asynchronous web service calls

    I have a win forms application that calls a web service
    asynchronously. Occassionally, the web service call with raise an
    exception. Unfortunately, since I am calling it asynchronously, I
    haven't been able to find a good way to handle exceptions.

    Can anyone point me in the right direction?

    Thanks,

    Doug
    Doug Perkes Guest

  2. Similar Questions and Discussions

    1. Asynchronous calls from Java?
      Hi, I want to listen for events on the java side and have a flex method called when something happens. How would I do this? This should be...
    2. Web service calls asynchronous vs synchronous
      The best solution is to design you architecture using the observer pattern(GOF) K,Browne Developer
    3. Asynchronous web service calls
      Hi I am trying to do some tests using asynchronous web service calls and have hit a problem. I have reduced the problem to the minimum so...
    4. Asynchronous web service calls, will you still have timeouts
      If I am calling web services asynchronously, will I still have to be concerned with the request timing out? If IIS starts a process (calling a web...
    5. Blocking problem/bug with enableSession=true and asynchronous web service calls?
      Hi, I've found what appears to be a bug with ASP.NET web service method invocation - making it impossible to invoke and get the result of a...
  3. #2

    Default Re: handling exceptions in asynchronous web service calls

    Is the nature of your question more design-oriented? Meaning, are you asking
    how to gracefully handle asynchronous errors once the user is already doing
    something else in the WinForms app? Depending on the nature of the
    information, you may want to switch the Web service call to be synchronous
    rather than asynchronous. Alternatively, there is a hybrid broker/service
    agent approach, whereby you make a synchronous call to a broker, which in
    turn makes asynchronous calls to a number of web services and aggregates the
    results. You are limited to waiting for the longest running Web service
    operation, but at least the results are returned to you all at once by the
    broker.

    If you are looking to make single asynchronous calls, then exception
    handling will always be problematic, because you cannot control the timing
    of a return error with a coordinated response, since it's not clear what the
    application user will be doing when the error returns. My recommendation is
    to go synchronous, or, if it is possible, aggregate your asynchronous Web
    service calls with a synchronously called broker.

    Jeffrey Hasan, MCSD
    President, Bluestone Partners, Inc.
    -----------------------------------------------
    Author of: Expert SOA in C# Using WSE 2.0 (APress, 2004)
    [url]http://www.bluestonepartners.com/soa.aspx[/url]

    "Doug Perkes" <dougperkes@gmail.com> wrote in message
    news:10f816a.0408060800.6b44dd42@posting.google.co m...
    > I have a win forms application that calls a web service
    > asynchronously. Occassionally, the web service call with raise an
    > exception. Unfortunately, since I am calling it asynchronously, I
    > haven't been able to find a good way to handle exceptions.
    >
    > Can anyone point me in the right direction?
    >
    > Thanks,
    >
    > Doug

    Jeffrey Hasan 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