Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2004

Tip: Looking for answers? Try searching our database.

handling exceptions in asynchronous web service calls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Doug Perkes - 06 Aug 2004 17:00 GMT
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 - 09 Aug 2004 22:45 GMT
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)
http://www.bluestonepartners.com/soa.aspx

> I have a win forms application that calls a web service
> asynchronously. Occassionally, the web service call with raise an
[quoted text clipped - 6 lines]
>
> Doug

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.