title: How to transform SoapFault to SoapMessage via Interceptor in CXF?
body: <p>I have web-service created and configured via <code>Spring</code> and <code>CXF</code>. See beans below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans &lt;!-- ommited --&gt;&gt;
      &lt;import resource="classpath:META-INF/cxf/cxf.xml" /&gt;
      &lt;import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /&gt;
      &lt;import resource="classpath:META-INF/cxf/cxf-servlet.xml" /&gt;
  
      &lt;bean id="internalActService" class="package.InternalActServiceImpl" /&gt;
  
      &lt;jaxws:endpoint implementor="#internalActService" address="/InternalActService"&gt;
          &lt;jaxws:properties&gt;
              &lt;entry key="schema-validation-enabled" value="true" /&gt;
          &lt;/jaxws:properties&gt;
  
          &lt;jaxws:outFaultInterceptors&gt;
              &lt;bean class="package.InternalActServiceFaultOutInterceptor" /&gt;
          &lt;/jaxws:outFaultInterceptors&gt;
      &lt;/jaxws:endpoint&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>As can you see I added schema validation to my web service. But <code>CXF</code> throws <code>SoapFault</code> when request is not corresponding with schema.
  I want to send to the client <code>SoapMessage</code> instead of <code>SoapFault</code>, that's why I added <code>outFaultInterceptors</code>.</p>
  
  <p>My question is how to transform <code>SoapFaul</code>t to <code>SoapMessage</code>? I've made few tries but I don't know how to implement <code>outFaultInterceptor</code>.</p>