title: Camel and CXF: How to get the outbound message?
body: <p>I have this camel route:</p>
  
  <pre><code>    from("cxf:bean:endpointDocs01?loggingFeatureEnabled=true")
      .to("direct:CBR") 
      .transform().method(WebServiceUtils.class,"response()")
      .log("Outbound message: ${body}");
  </code></pre>
  
  <p><strong>endpointDocs01</strong> is defined in the blueprint like this:</p>
  
  <pre><code>&lt;cxf:cxfEndpoint address="/documentos/" id="endpointDocs01"
      serviceClass="com.adelco.webservice.ServiceDocs" wsdlURL="wsdl/wsdl03.wsdl"&gt;
      &lt;cxf:properties&gt;
          &lt;entry key="schema-validation-enabled" value="true"/&gt;
      &lt;/cxf:properties&gt;
  &lt;/cxf:cxfEndpoint&gt;
  </code></pre>
  
  <p>This route works with no problems including the schema-validation.</p>
  
  <p>When I send a correct request, I can do "things" (in this case logging) using the last line of the exchange "<strong>.log("Outbound message: ${body}</strong>". In this case, the log shows this:</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;soap:Body&gt;
        &lt;outputDocumento xmlns="http://webservice.adelco.com"&gt;
           &lt;respuesta&gt;0&lt;/respuesta&gt;
           &lt;mensaje&gt;El mensaje [113282] fue recibido. Fecha recepción Wed Apr 12 17:01:11 CLT 2017&lt;/mensaje&gt;
         &lt;/outputDocumento&gt;
      &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>But, when I send a incorrect request, the line ".log("Log outbound message: ${body}" does nothing. However I get a response in the client (a Soap:Fault response)</p>
  
  <pre><code> &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;soap:Body&gt;
        &lt;soap:Fault&gt;
            &lt;faultcode&gt;soap:Client&lt;/faultcode&gt;
            &lt;faultstring&gt;Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'Sociedad'. One of '{"http://webservice.adelco.com":TipoMovimiento}' is expected.&lt;/faultstring&gt;
         &lt;/soap:Fault&gt;
      &lt;/soap:Body&gt;
   &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Why this soap:Fault response in not logged?</p>