Solved

Automatically Handling Exceptions : Soap vs. Client - C#

Posted on 2010-09-06
1
551 Views
Last Modified: 2013-11-18
I am working with Enterprise level applications that consist of a windows app,  2 websites, 2 webservices(C#).  My question is somewhat broad, but I am looking for examples.  We are using Exception Policies implemented with EnterpriseLibrary.  The main issue I am trying to workout is to throw exceptions that will be caught by both client and server applications.  For example, one of the websites and webservices is a custom security provider. It uses both active directory and asp.net providers (sql and oracle).  Both the other website and windows app both use the security sites webserive to connect to the provider.  I do not want to have to pass in which system is calling the service (as there are a million other calls to the service besides this one), so I want to figure out a way to throw a custom exception that can be caught by both windows and web applications - from my understanding windows applications cannot catch soap exceptions - if you need more information, let me know - but the main point is I am looking for an exception class that can be thrown over the wire to both webservice and windows apps - and I am restricted to using .Net 2
0
Comment
Question by:gsdevEE
1 Comment
 
LVL 11

Accepted Solution

by:
lenordiste earned 500 total points
ID: 33613579
Windows applications can catch soap exceptions. You just need to reference the assembly System.Web.Services in your project (right click on project name, add assembly, .NET etc.).

The SoapException is under the following namespace System.Web.Services.Protocols.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that undeā€¦
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question