SOAP Exception / Fault

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?

Who is Participating?
evilrixConnect With a Mentor Senior Software Engineer (Avast)Commented:
If an exception propagates from within your webservice it is automatically converted to a SoapException, which your client catch and can handle.
evilrixSenior Software Engineer (Avast)Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.