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



See also


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

Models Views


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

The 'New Model Package' dialog displays.

Project Browser Toolbar


In the 'Name' field type the name of the new Package, and select the 'Create Diagram' radio button.

Add a Package


Click on the OK button.

The 'New Diagram' dialog displays.


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


Click on the OK button.

In the Project Browser, double-click on the icon next to the new diagram's name; the diagram opens in the Diagram View, with the Class pages displaying in the Diagram Toolbox.

Diagram Toolbox


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

The 'WSDL' Toolbox page displays.

WSDL Toolbox


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


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.

The model structure consists of these sub-Packages, with an Overview diagram to navigate between them:

  • 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

Model XSD WSDL 1.1 Model Structure


Model each of the WSDL constructs in their corresponding Packages.

WSDL Port Type WSDL Message WSDL Binding WSDL Document WSDL Binding Operation WSDL Service WSDL Message Part WSDL Port Type Operation

Template WSDL Model - Diagram

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

Template WSDL Model - Project Browser Hierarchy