?
Solved

SOAP Exception / Fault

Posted on 2007-11-20
2
Medium Priority
?
486 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
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…
Integration Management Part 2
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

809 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