Change an Axis option to prevent Axis from transforming SOAP fault to Axis fault exception (when a partner service replies by a soap fault)
Be careful: The sub tags of <soapenv:Fault> are unqualified as below. Axis returns an empty fault if they are qualified (for example <soapenv:faultcode).
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>Cannot find the equipment record.</faultstring>
         <detail>
            <ns1:ExceptionInfoList xmlns:ns1="http://schemas.datastream.net/MP_functions">
               <ns1:ExceptionInfo functionid="MP0302">
                  <ns1:Exception name="com.dstm.mp.businessprocess.asset.CannotFindEquipmentException">
                     <ns1:ReasonCode>1</ns1:ReasonCode>
                     <ns1:Message>Le système ne peut pas trouver l'enregistrement d'équipement.</ns1:Message>
                  </ns1:Exception>
               </ns1:ExceptionInfo>
            </ns1:ExceptionInfoList>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>
 
The exception is not raised anymore, a SOAP-Fault is raised instead.
The Fault of the given mock is not properly propagated, because there are not Fault defined for this WebService.