Hi
This is regarding [1]. Seems we are specifically restricting this. Is there
particular reason why we do the following check and specifically
re-construct the service content with the old content.
if ("true".equals(resource.getProperty("registry.WSDLImport"))) {
resource.removeProperty("registry.WSDLImport");
try {
XMLStreamReader reader = XMLInputFactory.newInstance().
createXMLStreamReader(new
StringReader(oldContent));
StAXOMBuilder builder = new StAXOMBuilder(reader);
oldServiceInfoElement = builder.getDocumentElement();
CommonUtil.setServiceName(oldServiceInfoElement,
CommonUtil.getServiceName(serviceInfoElement));
CommonUtil.setServiceNamespace(oldServiceInfoElement,
CommonUtil.getServiceNamespace(serviceInfoElement));
CommonUtil.setWSDLURL(oldServiceInfoElement,
CommonUtil.getWSDLURL(serviceInfoElement));
CommonUtil.setEndpointEntries(oldServiceInfoElement,
CommonUtil.getEndpointEntries(serviceInfoElement));
CommonUtil.setServiceVersion(oldServiceInfoElement,
org.wso2.carbon.registry.common.utils.CommonUtil.getServiceVersion(
serviceInfoElement));
serviceInfoElement = oldServiceInfoElement;
resource.setContent(serviceInfoElement.toString());
} catch (Exception e) {
String msg = "Error in parsing the service
content of the service. " +
"The requested path to store the
service: " + originalServicePath + ".";
log.error(msg);
throw new RegistryException(msg, e);
}
}
[1] - https://wso2.org/jira/browse/REGISTRY-1349
--
Subash Chaturanga
Software Engineer
WSO2 Inc. http://wso2.com
email - [email protected]
phone - 077 2225922
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev