epr = EndpointReferenceUtils.createAxis2EndpointReference(address, service, port, wsdlLocation, addressingNamespace);
// Add reference parameters from WSDL to the EPR
AxisService axisService = endpointDesc.getAxisService();
if (axisService != null) {
AxisEndpoint axisEndpoint = axisService.getEndpoint(axisService.getEndpointName());
if(axisEndpoint != null){
ArrayList referenceParameters = (ArrayList) axisEndpoint.getParameterValue(AddressingConstants.REFERENCE_PARAMETER_PARAMETER);
if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {
log.trace("getEndpointReference: Adding reference parameters to EPR from WSDL: axisService = " + axisService + ", axisEndpoint = " + axisEndpoint.getName() + ", referenceParameters = " + referenceParameters);
}
if(referenceParameters!=null){
Iterator iterator = referenceParameters.iterator();
HashMap<QName, OMElement> refParamMap = new HashMap<QName, OMElement>();
while (iterator.hasNext()) {