3

This question relates to this question which I asked earlier this week.

The answer given was correct, except I forgot to mention we were not using WCF, but regular XML Web Services, where there's no [DataContract] - all methods are simply prefixed with [WebMethod].

Is there any similar way of handling exceptions using this service? The idea of FaultContracts would be nice, but it does not seem this applies to non-WCF services.

EDIT: Both server and client are written in .NET (C#), so it is not so much a matter of the format returned but the ability of the client program to identify and catch the proper exception instead of a generic Soap/FaultException.

1 Answer 1

4
  1. Throwing better SOAP exceptions
  2. Handling and Throwing Exceptions in XML Web Services.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.