}
if (!WSDL2_NAMESPACE.equals(document.getDocumentElement().getNamespaceURI())) {
LOGGER.debug("Endpoint {} has a non WSDL2 service description", serviceEndpoint);
return;
}
WSDLReader reader = new DOMWSDLReader();
DOMWSDLSource source = (DOMWSDLSource) reader.createWSDLSource();
source.setSource(document);
DescriptionElement descElement = reader.readWSDL(source);
Description desc = descElement.toComponent();
// Check if the wsdl is only a port type
// In these cases, only the port type is used, as the service name and endpoint name
// are provided on the jbi endpoint
if (desc.getInterfaces().length == 1 && desc.getServices().length == 0) {