Author: ruwan
Date: Thu Apr 17 22:21:32 2008
New Revision: 15774
Log:
Fixing the issue, ESBJAVA-445. Now if the wsdl is not valid then the console
doesn't allow you to save the wsdl and you can not proceed
Modified:
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/proxyservices.js
Modified:
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/proxyservices.js
==============================================================================
---
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/proxyservices.js
(original)
+++
trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/proxyservices.js
Thu Apr 17 22:21:32 2008
@@ -1113,7 +1113,15 @@
internalmodel.proxy.removeChild(wsdl[0]);
}
- internalmodel.proxy.appendChild(createesbelement("<syn:publishWSDL
xmlns:syn='http://ws.apache.org/ns/synapse'>" + wsdlvalue.value +
"</syn:publishWSDL>"));
+ var inlinewsdlelem = createesbelement(wsdlvalue.value);
+ if (inlinewsdlelem != undefined && (inlinewsdlelem.localName ==
"definitions" || inlinewsdlelem.localName == "description")) {
+ var pub_wsdl_elem = createesbelement("<syn:publishWSDL
xmlns:syn='http://ws.apache.org/ns/synapse'></syn:publishWSDL>");
+ pub_wsdl_elem.appendChild(inlinewsdlelem);
+ internalmodel.proxy.appendChild(pub_wsdl_elem);
+ } else {
+ esbwarning("Specified WSDL is not valid", TYPE_WARN);
+ return;
+ }
} else {
esbwarning("WSDL specified is invalid", TYPE_WARN);
}
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev