About EasyWSDL - ComplexWSDL


EasyWSDL - ComplexWSDL enables to group all imports to the main file in order to use description in distributed environment.


Managing WSDL in distributed work

ComplexWSDL extension add two methods to use WSDL descriptions through a distributed environment. It manages import locations in order to use identically description in any server, whatever its connexion means.

The new methods allow to add all imports in the main description or to get back the initial document. All other functionalities are similar to EasyWSDL.

// Read description
WSDL4ComplexWsdlReader reader = WSDL4ComplexWsdlFactory.newInstance().newWSDL4ComplexWsdlReader();
Description desc = reader.read(new URL("http://url/of/the/document.wsdl"));

// Unify all import and include
// Here, the description can be moved and used by any server (1)

// Get back the initial WSDL description

The unified document (1) looks like:

<?xml version="1.0" encoding="UTF-8"?>
<ns1:definitions xmlns:ns1=[...]>
        <ns2:importedDocuments xmlns:ns2="http://petals.ow2.org/wsdlExtensions" [...]>
                <ns2:document location="xpath://description/importedDocuments/document/foobar.xsd" 
                        <!-- Imported document -->
                <!-- Other imported documents -->
        <!-- Initial WSDL description with relocated imports -->
        <ns1:import location="xpath://description/importedDocuments/document/foobar.xsd">

Unfortunately, this document is not compliant with W3C standards/submissions. This extension must be used only when necessary.

Working with Maven2

The artifacts are available as Maven2 modules, you can add easyWSDL to your project POM like this


Petals ESB : Open source Enterprise Service Bus - Petals Master : SOA Governance - Petals Forum - Petals Blogs - Petals Twitter
Open Suit : Service-oriented presentation framework - EasyBPEL : BPEL engine - EasyWSDL : WSDL Parser
OW2 : Open source middleware consortium - Petals Link : Open source SOA solutions