title: SOAP - ServerSOAPFaultException is thrown instead of appropriate @WebFault exception
body: <p>I have generated POJO's from WSDL schema, but errors don't seem to be mapped to appropriate <code>@Webfault</code> exception. Instead of getting <code>AXLError</code> I receive <code>ServerSOAPFaultException</code>.</p>
  
  <p>Generated exception file: </p>
  
  <pre><code>package com.cisco.axlapiservice;
  
  import javax.xml.ws.WebFault;
  
  
  /**
   * This class was generated by Apache CXF 3.1.8
   * 2016-11-13T14:30:37.692+02:00
   * Generated source version: 3.1.8
   */
  
  @WebFault(name = "axlError", targetNamespace = "http://www.cisco.com/AXL/API/11.5")
  public class AXLError extends Exception {
  
      private com.cisco.axl.api._11.AXLError axlError;
  
      public AXLError() {
          super();
      }
  
      public AXLError(String message) {
          super(message);
      }
  
      public AXLError(String message, Throwable cause) {
          super(message, cause);
      }
  
      public AXLError(String message, com.cisco.axl.api._11.AXLError axlError) {
          super(message);
          this.axlError = axlError;
      }
  
      public AXLError(String message, com.cisco.axl.api._11.AXLError axlError, Throwable cause) {
          super(message, cause);
          this.axlError = axlError;
      }
  
      public com.cisco.axl.api._11.AXLError getFaultInfo() {
          return this.axlError;
      }
  }
  </code></pre>
  
  <p>Response returned from server:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;soapenv:Body&gt;
        &lt;soapenv:Fault&gt;
           &lt;faultcode&gt;soapenv:Client&lt;/faultcode&gt;
           &lt;faultstring&gt;Cannot insert or update pattern. A DN exists with the same pattern and partition.&lt;/faultstring&gt;
           &lt;detail&gt;
              &lt;axlError&gt;
                 &lt;axlcode&gt;4052&lt;/axlcode&gt;
                 &lt;axlmessage&gt;Cannot insert or update pattern. A DN exists with the same pattern and partition.&lt;/axlmessage&gt;
                 &lt;request&gt;addLine&lt;/request&gt;
              &lt;/axlError&gt;
           &lt;/detail&gt;
        &lt;/soapenv:Fault&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>The following exception is thrown:</p>
  
  <pre><code>com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Cannot insert or update pattern. A DN exists with the same pattern and partition. Please see the server log to find more detail regarding exact cause of the failure.
      at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
      at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:124)
      at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
      at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
      at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
      at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
      at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
      at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
      at com.sun.proxy.$Proxy135.addLine(Unknown Source)
      at com.company.product.provisioning.AxlApi.addLine(AxlApi.java:243)
  ...
  </code></pre>
  
  <p>Could you please point me why I never receive an <code>AXLError</code>?</p>