Solved

Automatically Handling Exceptions : Soap vs. Client - C#

Posted on 2010-09-06
1
545 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
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:
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now