Solved

SOAP Exception / Fault

Posted on 2007-11-20
2
458 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

18 Experts available now in Live!

Get 1:1 Help Now