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.

Woden 1.0M8 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();

Last update: 2009.

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

WSDL 20 Programming APIs and Testing Tools

 List of APIs and Tools

 ServiceClient Class Loading WSDL 2.0 Documents

  WSDL2Java Converting WSDL 2.0 Documents to Stub Classes

 What Is Woden 1.0?

 WSDL 2.0 Component Model

 WSDL 2.0 Component Model - Test

WSDL 2.0 Element Model

 WSDL 2.0 Element Model Test

 Introduction to WSDL 1.1

 WSDL 1.1 Document Structure and Syntax

 WSDL 1.1 Binding Extension for SOAP 1.1

 soapUI 3.0.1 - Web Service Testing Tool

 WSDL 1.1 and SOAP 1.1 Examples - Document and RPC Styles

 PHP SOAP Extension in PHP 5.3.1

 Using WSDL in Perl with SOAP::Lite 0.710

 Using WSDL Document in Java with Axis2 1.4.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

 WSDL Related Terminologies


 PDF Printing Version