WSDL Tutorials - Herong's Tutorial Examples - v2.22, by Herong Yang
Java API for 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 Apache Woden Java API, 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(); ...
Table of Contents
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
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
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