}
}
setTransportId(transportId);
WSDLEndpointFactory wsdlEndpointFactory = getWSDLEndpointFactory();
EndpointInfo ei;
if (wsdlEndpointFactory != null) {
ei = wsdlEndpointFactory.createEndpointInfo(service.getServiceInfos().get(0), bindingInfo, null);
ei.setTransportId(transportId);
} else {
ei = new EndpointInfo(service.getServiceInfos().get(0), transportId);
}
int count = 1;
while (service.getEndpointInfo(endpointName) != null) {
endpointName = new QName(endpointName.getNamespaceURI(),
endpointName.getLocalPart() + count);
count++;
}
ei.setName(endpointName);
ei.setAddress(getAddress());
ei.setBinding(bindingInfo);
if (wsdlEndpointFactory != null) {
wsdlEndpointFactory.createPortExtensors(ei, service);
}
service.getServiceInfos().get(0).addEndpoint(ei);
serviceFactory.sendEvent(FactoryBeanListener.Event.ENDPOINTINFO_CREATED, ei);
return ei;