?
Solved

Automatically Handling Exceptions : Soap vs. Client - C#

Posted on 2010-09-06
1
Medium Priority
?
564 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
lenordiste earned 2000 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

800 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