* @param endpointRef a WS-Addressing EndpointReference instance.
* @return an instance of the corresponding XmlBeans generated EndpointReferenceType
*/
public static EndpointReferenceType getXLMBeanEPR( org.apache.axis.message.addressing.EndpointReference endpointRef )
{
EndpointReferenceType endpointReference = EndpointReferenceType.Factory.newInstance( );
AttributedURI attrURI = endpointReference.addNewAddress( );
attrURI.setStringValue( endpointRef.getAddress( ).toString( ) );
AttributedQName attrQname = endpointReference.addNewPortType( );
attrQname.setQNameValue( endpointRef.getPortType( ) );
org.xmlsoap.schemas.ws.x2003.x03.addressing.ReferencePropertiesType endpointPropType =
endpointReference.addNewReferenceProperties( );
org.apache.axis.message.addressing.ReferencePropertiesType axisPropType =
endpointRef.getProperties( );
SOAPElement[] anyArray = axisPropType.get_any( );
XmlBeansUtils.setEPRReferenceProperties( endpointPropType, anyArray );
ServiceNameType serviceName = endpointReference.addNewServiceName( );
serviceName.setPortName( endpointRef.getServiceName( ).getLocalPart( ) );
return endpointReference;
}