title: Exception handling for WCF service exposed as REST and SOAP service
body: <p>Is there a good way to throw exceptions from a WCF service that is exposed both as a RESTful service and SOAP service? From what I have gathered so far, SOAP service should throw FaultExceptions and RESTful service should throw WebProtocolException for the error details to be easily available at client side. In my case, the same service is exposed through 2 endpoints - RESTful and SOAP. What kind of exception handling mechanism should I use so I can pass error details easily to both RESTful clients and SOAP clients?</p>