title: WCF EntLib Validation - change default SOAP Fault Reason text
body: <p>I'm using the <a href="http://msdn.microsoft.com/en-us/library/cc309334.aspx" rel="nofollow noreferrer">Enterprise Library Validation Application Block</a> for my WCF service. All is fine, and .Net consumers can catch the <code>FaultException&lt;ValidationFault&gt;</code> exception to get a collection of human-readable business errors. However, it doesn't look quite as great for non-.Net consumers, especially those that are going to be looking at the raw SOAP message. The SOAP Reason text is always "<em>The creator of this fault did not specify a Reason.</em>" This isn't very helpful, as there <em>is</em> a reason, it's specified under the <code>&lt;Detail&gt;</code> element, as shown in the example Fault message below.</p>
  
  <p>Is there any way to change the text "<em>The creator of this fault did not specify a Reason.</em>" to something more helpful like "<em>See ValidationFault Details</em>"?</p>
  
  <pre><code>&lt;s:Body&gt;
     &lt;s:Fault&gt;
        &lt;s:Code&gt;
           &lt;s:Value&gt;s:Sender&lt;/s:Value&gt;
        &lt;/s:Code&gt;
        &lt;s:Reason&gt;
           &lt;s:Text xml:lang="en-GB"&gt;The creator of this fault did not specify a Reason.&lt;/s:Text&gt;
        &lt;/s:Reason&gt;
        &lt;s:Detail&gt;
           &lt;ValidationFault xmlns="http://www.microsoft.com/practices/EnterpriseLibrary/2007/01/wcf/validation" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
              &lt;Details xmlns:b="http://schemas.datacontract.org/2004/07/Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF"&gt;
                 &lt;b:ValidationDetail&gt;
                    &lt;b:Key i:nil="true"/&gt;
                    &lt;b:Message&gt;Value Validator&lt;/b:Message&gt;
                    &lt;b:Tag&gt;request&lt;/b:Tag&gt;
                 &lt;/b:ValidationDetail&gt;
              &lt;/Details&gt;
           &lt;/ValidationFault&gt;
        &lt;/s:Detail&gt;
     &lt;/s:Fault&gt;
  &lt;/s:Body&gt;
  </code></pre>