isJMSFound = true;
break;
}
}
} else {
throw new CSGException("Error while configuring the transports!");
}
if (!isJMSFound) {
throw new CSGException("Cloud not determine the JMS epr of the service '" +
service.getName() + "'. This is required for service publishing. " +
"Check if the Qpid broker is running!");
}
if (serviceAdminMetaData.isActive()) {
String wsdlLocation = serviceAdminMetaData.getWsdlURLs()[0];
OMNode wsdNode =
CSGAgentUtils.getOMElementFromURI(wsdlLocation);
OMElement wsdlElement;
if (wsdNode instanceof OMElement) {
wsdlElement = (OMElement) wsdNode;
} else {
throw new CSGException("Invalid instance type detected when parsing the WSDL '"
+ wsdlLocation + "'. Required OMElement type!");
}
privateServiceMetaData.setInLineWSDL(wsdlElement.toStringWithConsume());
}