* @param base_fault
* @return Axis-generated EndpointReference.
*/
private static EndpointReferenceType toAxisEndpointReference( BaseFaultException base_fault )
{
EndpointReferenceType axis_endpoint = new EndpointReferenceType( );
org.apache.axis.message.addressing.EndpointReferenceType base_endpoint = base_fault.getOriginator( );
if ( base_endpoint != null )
{
axis_endpoint.setAddress( new AttributedURI( base_endpoint.getAddress( ).toString( ) ) );
axis_endpoint.setPortType( new AttributedQName( base_endpoint.getPortType( ) ) );
ReferencePropertiesType axis_ref_props =
new ReferencePropertiesType( );
org.apache.axis.message.addressing.ReferencePropertiesType base_ref_props =
base_endpoint.getProperties( );
axis_ref_props.set_any( base_ref_props.get_any( ) );
axis_endpoint.setReferenceProperties( axis_ref_props );
ServiceNameType axis_service_name = new ServiceNameType( );
org.apache.axis.message.addressing.ServiceNameType base_service_name = base_endpoint.getServiceName( );
axis_service_name.setPortName( new NCName( base_service_name.getPort( ) ) );
axis_service_name.set_value( base_service_name );
axis_endpoint.setServiceName( axis_service_name );
}
return axis_endpoint;
}