Interface itf = desc.getInterfaces()[0];
QName interfaceName = itf.getName();
LOGGER.debug("Endpoint {} implements interface {}", serviceEndpoint, interfaceName);
serviceEndpoint.addInterface(interfaceName);
} else {
Service service = desc.getService(serviceEndpoint.getServiceName());
if (service == null) {
LOGGER.info("Endpoint {} has a service description, but no matching service found in {}",
serviceEndpoint, desc.getServices());
return;
}
Endpoint endpoint = service.getEndpoint(new NCName(serviceEndpoint.getEndpointName()));
if (endpoint == null) {
LOGGER.info("Endpoint {} has a service description, but no matching endpoint found in {}",
serviceEndpoint, service.getEndpoints());
return;
}
if (endpoint.getBinding() == null) {
LOGGER.info("Endpoint {} has a service description, but no binding found", serviceEndpoint);
return;