Solved

Automatically Handling Exceptions : Soap vs. Client - C#

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

707 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

21 Experts available now in Live!

Get 1:1 Help Now