title: Setting SOAP fault in Mule
body: <p>Currently this is how I'm catching exception and setting the payload</p>
  
  <pre><code>&lt;catch-exception-strategy name="Catch_Exception_Strategy"&gt;
     &lt;logger message="#[exception.summaryMessage]" level="ERROR" doc:name="Logger"/&gt;
     &lt;set-payload value="Error in service operation" doc:name="Set Payload"/&gt;
  &lt;/catch-exception-strategy&gt;
  </code></pre>
  
  <p>But, CXF SOAP component sets the payload of real response object. While I want to send an error object in a SOAP Fault instead. How can I do that?</p>
  
  <p>Thanks in advance.</p>
  
  <h2>Update</h2>
  
  <p>Default exception strategy sends SOAP Fault with error message. Initially my purpose was to just add the logger and let the default error message go in the SOAP Fault. I added Catch exception strategy but later found out it does not send SOAP fault. Instead then I used Rollback strategy that send SOAP fault. However, there was not much benefit of logging exception inside strategy block using Mule Logger as it is already logged by Mule. </p>
  
  <p>Now, I realize the advantage of using cxf:outFaultInterceptor. You can not only add custom elements to SOAP Fault but you can also segregate custom logs in separate log file. Thanks Anirban for providing sample interceptor class.</p>