WSDL 2.0 Component Model

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

With Woden 1.0M8, you can validate and parse any WSDL 2.0 document using the WSDLReader and manipulate it as WSDL component objects (the Component Model) in steps:

1. Importing Woden component classes:

import org.apache.woden.WSDLFactory;
import org.apache.woden.WSDLReader;
import org.apache.woden.wsdl20.Description;
import org.apache.woden.wsdl20.Service;
import org.apache.woden.wsdl20.Binding;
import org.apache.woden.wsdl20.Interface;

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 Description component object

   Description wDescription = wReader.readWSDL(wsdl);

4. Retrieving sub components out of the Description component object

   Service[] serviceList = wDescription.getServices();
   Binding[] bindingList = wDescription.getBindings();
   Interface[] interfaceList = wDescription.getInterfaces();
   InterfaceOperation[] operationList 
      = interfaceList[0].getInterfaceOperations();
   ElementDeclaration[] elementList 
      = wDescription.getElementDeclarations();
   TypeDefinition[] typeList = wDescription.getTypeDefinitions();

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