Model WSDL

You can quickly and easily model the elements in a Web Service Definition using the WSDL page of the Diagram Toolbox. As a first step, you can create an example WSDL Package structure in the Project Browser, using the Namespace icon from the WSDL page. You can use this example package structure as a template for developing your WSDL.

Create a new WSDL Package structure

Step

Action

See also

1

In the Project Browser, create the top-level project structure you need (Model and Views), and click on the appropriate View.

Models

Views

 

2

Click on the New Package icon in the Project Browser toolbar.

The New Model Package dialog displays.

 

Project Browser Toolbar

3

In the Name field type the name of the new package, and select the Automatically add new diagram and Open new diagram checkboxes.

 

Add a Package

4

Click on the OK button.

The New Diagram dialog displays.

 

 

5

In the Name field type the name of the new diagram.

In the Select From panel select UML Structural, and in the Diagram Types panel select Class.

 

Add New Diagrams

6

Click on the OK button.

The new Class diagram opens in the Diagram View, with the Class pages displaying in the Diagram Toolbox.

 

 

Diagram Toolbox

7

Click on the More tools option in the Toolbox and select Extended | WSDL.

The WSDL Toolbox page displays.

 

 

WSDL Toolbox

8

Click on the Namespace icon from the Toolbox and drag it into the Class diagram.

The WSDL Namespace Properties dialog displays.

Type in a WSDL Package Name and the URL of the Target Namespace. You can edit these values later.

 

 

 

WSDL Namespace

9

Click on the OK button.

The sample «WSDLnamespace» stereotyped package structure is created on the diagram, and the full model structure is displayed, expanded, in the Project Browser (see below).

The model structure consists of the following sub-packages, with an Overview diagram to navigate between the sub-packages:

Types: Contains the XSD types for the data communicated by the web service, on a Types diagram
Messages: Contains the WSDL Messages, modeled as UML Classes marked with the stereotype «WSDLmessage»
PortTypes: Contains the WSDL Port Types, modeled as UML interfaces marked with the stereotype «WSDLportType»
Bindings: Contains the WSDL Bindings, modeled as UML Classes that realize the PortTypes
Services: Contains the WSDL Services, modeled as UML interfaces with Associations to each exposed Binding
 

 

 

 

WSDL 1.1 Model Structure

Model XSD

10

Model each of the WSDL constructs in their corresponding Packages.

 

WSDL Message

WSDL Message Part

WSDL Port Type

WSDL Port Type Operation

WSDL Binding

WSDL Binding Operation

WSDL Service

WSDL Document

 

Template WSDL Model - Diagram

The WSDLnamespace Package acts as a container for the WSDL structure.

WSDLNamespaceDiag

Template WSDL Model - Project Browser Hierarchy

WSDL_Structure