Convert WSDL 1.1 to 2.0 with Woden API

This section provided a tutorial example to show to invoke the org.apache.woden.tool.converter.Convert class from Woden Java API to convert WSDL 1.1 documents to WSDL 2.0.

There is also a nice WSDL 1.1 to WSDL 2.0 conversion tool included in the Woden Java API. You can run it by invoking the org.apache.woden.tool.converter.Convert class:

herong> java -cp .;\local\axis2\lib\* \

3:30:53 PM org.apache.woden.tool.converter.Convert printUsage
SEVERE: Error: No WSDL 1.1 document was specified (use '-wsdl' argument.)


  java org.apache.woden.tool.converter.Convert [args]


      -wsdl         file-or-URL-of-wsdl1.1-document
      [-targetNS    new-target-namespace]
      [-dir        targetDir]   default: .
      [-verbose     (on|off)]   default: on
      [-overwrite   (on|off)]   default: off   (Overwrite existing files?)

Let's try it with my Hello WSDL 1.1 document:

herong> java -cp .;\local\axis2\lib\* \
   org.apache.woden.tool.converter.Convert -wsdl Hello_WSDL_11_SOAP.wsdl

Retrieving document at 'Hello_WSDL_11_SOAP.wsdl'.
3:35:49 PM org.apache.woden.tool.converter.Utils getOutputStream

INFO: Created file '/Users/herong/Hello_WSDL_11_SOAP.wsdl2'.
3:35:49 PM org.apache.woden.tool.converter.Convert main

INFO: Done.
Elapsed time: 109ms

Here is the WSDL 2.0 document generated by the tool:

<description xmlns=""
      <xsd:element name="HelloRequest" type="xsd:string"/>
      <xsd:element name="HelloResponse" type="xsd:string"/>
  <interface name="helloPortType">
    <operation name="Hello"
      <input messageLabel="In" element="hy:HelloRequest"/>
      <output messageLabel="Out" element="hy:HelloResponse"/>
  <binding name="helloBinding"
    <operation ref="hy:Hello"
  <service name="helloService" interface="hy:helloPortType">
    <endpoint name="helloPort"

Good job. Of course, it does not use any predefined message styles specified in the "WSDL Version 2.0 Part 2: Adjuncts" specification.

Table of Contents

 About This Book

 Introduction to WSDL 2.0

 WSDL 2.0 Document Structure and Syntax

 WSDL Version 2.0 Part 2: Adjuncts

 WSDL 2.0 Document Examples with SOAP Binding

 Using WSDL Document in Java Apache Axis2/Java for WSDL

Apache Woden for WSDL Documents in Java

 What Is Apache Woden - WSDL Parser API

 Java API for WSDL 2.0 Component Model - Testing WSDL 2.0 Components

 Java API for WSDL 2.0 Element Model - Testing WSDL 2.0 Elements - WSDL 2.0 Validator

 WSDL 2.0-2 Adjuncts Not Supported by Woden API

Convert WSDL 1.1 to 2.0 with Woden API

 SoapUI - Web Service Testing Tool

 PHP SOAP Extension for WSDL

 Perl SOAP::Lite for WSDL

 Introduction to WSDL 1.1

 WSDL 1.1 Document Structure and Syntax

 WSDL 1.1 Binding Extension for SOAP 1.1

 SoapUI as WSDL 1.1 Testing Tool

 WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles

 PHP SOAP Extension for WSDL 1.1

 Perl SOAP::Lite for WSDL 1.1

 Apache Axis2/Java for WSDL 1.1

 Using WSDL2Java to Generate Web Service Stub Classes

 WSDL 1.1 Binding Extension for SOAP 1.2

 WSDL 1.1 and SOAP 1.2 Examples - Document and RPC Styles

 SOAP 1.2 Binding - PHP, Java and Perl Clients

 Python SOAP Client: Zeep

 WSDL Related Terminologies

 Archived Tutorials


 Full Version in PDF/EPUB