* @return Axis-generated _BaseFaultType_ErrorCode
*/
private static BaseFaultTypeErrorCode toAxisErrorCode( BaseFaultException base_fault )
{
BaseFaultTypeErrorCode axis_error_code = new BaseFaultTypeErrorCode( );
ErrorCode error_code = base_fault.getErrorCode( );
if ( error_code != null )
{
SOAPElement[] base_fault_errors = error_code.getContent( );
MessageElement[] error_elems = new MessageElement[base_fault_errors.length];
for ( int i = 0; i < base_fault_errors.length; i++ )
{
error_elems[i] = (MessageElement) base_fault_errors[i];
}
axis_error_code.set_any( error_elems );
try
{
axis_error_code.setDialect( AxisUtils.toAxisURI( error_code.getDialect( ) ) );
}
catch ( URI.MalformedURIException e )
{
throw new RuntimeException( e );
}