Solved

SOAP Exception / Fault

Posted on 2007-11-20
2
463 Views
Last Modified: 2010-04-15
I have a bunch of Try Catch blocks throughout my code, and I want to throw some exceptions with a custom error code and a custom message.

How would I do this so that SOAP would handle it correctly and the Client to my webservice will receive the appropirate Fault?

Cheers
0
Comment
Question by:directxBOB
  • 2
2 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 500 total points
ID: 20319136
If an exception propagates from within your webservice it is automatically converted to a SoapException, which your client catch and can handle.
0
 
LVL 40

Expert Comment

by:evilrix
ID: 20319141
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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