*
* @return Axis-generated BaseFaultType
*/
public static BaseFaultType toAxisBaseFault( BaseFaultException base_fault )
{
BaseFaultType axis_base_fault = createEquivalentAxisBaseFault( base_fault );
axis_base_fault.setFaultActor( base_fault.getFaultActor( ) );
axis_base_fault.setFaultCode( base_fault.getFaultCode( ) );
axis_base_fault.setFaultString( base_fault.getFaultString( ) );
axis_base_fault.setDescription( base_fault.getDescription( ) );
axis_base_fault.setTimestamp( base_fault.getTimestamp( ) );
axis_base_fault.setStackTrace( base_fault.getStackTrace( ) );
axis_base_fault.setErrorCode( toAxisErrorCode( base_fault ) );
BaseFaultException[] base_faults = base_fault.getFaultCause( );
if ( base_faults != null )
{
BaseFaultType[] axis_base_faults = new BaseFaultType[base_faults.length];
for ( int i = 0; i < base_faults.length; i++ )
{
axis_base_faults[i] = toAxisBaseFault( base_faults[i] );
}
axis_base_fault.setFaultCause( axis_base_faults );
}
axis_base_fault.setOriginator( toAxisEndpointReference( base_fault ) );
return axis_base_fault;
}