What is the WSDLFlattener?
The WSDLFlattener is a FREE tool that helps you merge modularly designed WSDL and Xml Schema files into an easy to use stand alone file.
Often times, WSDLs and Schemas are developed modularly using both wsdl:include and xsd:include/xsd:import statements to enable the reuse of components. The WSDLFlattener takes a WSDL and merges all wsdl:includes as well as all xsd:include/xsd:import into a single, stand alone result.
Even further - the WSDL Flattener doesn't only copy included/imported files. It also merges all Xml Schema files by targetNamespace. So within the WSDL result, there is only one, single xsd:schema element for each default/targetNamespace.
The heart of the WSDL Flattener is an XSLT transformation. This means it can be used in applications and batch files in the same manner as the Schema Flattener and Schema Lightener.
Why would I need it?
This tool supports the notion of "develop modular, deploy stand alone". Meaning that the most efficient design is to model files in a modular, reusable fashion. Then when it comes time for deployment, one can merge together making things easier for tools and sharing with others. This is deployment as stand alone files.
The process of consolidating all dependencies of a WSDL into a single file. In short, all wsdl:include files are merged into a single WSDL. The WSDL Flattener will also merge all xsd:includes together in that same WSDL file result. In addition, it will do the same for each xsd:import dependency.