Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

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 Browser window, 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 Browser window, create the top-level project structure you need (Model and Views), and click on the appropriate View.

Building Models Views


Click on the 'New Package' option in the Browser window header drop-down list.

The 'New Model Package' dialog displays.

Browser Header Bar


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 Browser window, 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


In the Toolbox, click on Search to display the 'Find Toolbox Item' dialog and specify 'WSDL', then select the Toolbox page from the results.

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 Browser window.

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
WSDL 1.1 Model Structure Modeling XSD


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.

Template WSDL Model - Diagram

Template WSDL Model - Browser Window Hierarchy