Java API for WSDL 2.0 Element Model

This section describes the Element Model used by Woden to represent a WSDL 2.0 document. org.apache.woden.wsdl20.xml.DescriptionElement class represents the top element, Description.

Apache Woden also provides an element model to represent an WSDL document as XML element objects as shown in these steps:

1. Importing Woden element classes:

import org.apache.woden.WSDLFactory;
import org.apache.woden.WSDLReader;
import org.apache.woden.wsdl20.Description;
import org.apache.woden.wsdl20.xml.DescriptionElement;
import org.apache.woden.wsdl20.xml.ServiceElement;
import org.apache.woden.wsdl20.xml.BindingElement;
import org.apache.woden.wsdl20.xml.InterfaceElement;
...

2. Creating a WSDLReader with validation turned on

   WSDLFactory wFactory = WSDLFactory.newInstance();
   WSDLReader wReader = wFactory.newWSDLReader();
   wReader.setFeature(WSDLReader.FEATURE_VALIDATION, true);

3. Parsing a WSDL 2.0 document into a DescriptionElement object

   Description wDescription = wReader.readWSDL(wsdl);
   DescriptionElement eDescription = wDescription.toElement();

4. Retrieving sub elements out of the DescriptionElement object

   ServiceElement[] serviceList = eDescription.getServiceElements();
   BindingElement[] bindingList = eDescription.getBindingElements();
   InterfaceElement[] interfaceList
      = eDescription.getInterfaceElements();
   TypesElement eTypes = eDescription.getTypesElement();
...

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

 WodenHelloComponent.java - Testing WSDL 2.0 Components

Java API for WSDL 2.0 Element Model

 WodenHelloElement.java - Testing WSDL 2.0 Elements

 Wsdl20Validator.java - 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

 References

 Full Version in PDF/EPUB