WSDL Namespace

Return to Introduction  Previous page  Next page

The WSDL namespace in Enterprise Architect represents the top-level container for the WSDL elements, including WSDL documents. Conceptually it maps to the targetNamespace in a WSDL definition element. A given WSDL namespace can reuse its schema Types, Messages, Port Types, Bindings and Service across multiple physical WSDL documents.

The figure below shows an example WSDL namespace (WSDLPackage1, which has a red margin to the bottom right corner), including a single WSDL document:

EAProjExplorer

To create a new WSDL namespace in your model, follow the steps below.

1.Select the WSDL element from the WSDL Elements page of the Enterprise Architect UML Toolbox.
2.Drag the Namespace element from the Toolbox onto a diagram. The WSDL Namespace Properties dialog displays:
 
WSDLNamespaceProps
 
3.Enter a package name and target namespace name. You can edit these values later.
4.Click on the OK button to create a package stereotyped as WSDLnamespace. This contains the following sub-packages and an Overview diagram to navigate between the sub-packages:
·Types: Contains the XSD types used by the WSDL Message elements; this package is modeled as an XML Schema
·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.
5.Use the Overview diagram to navigate between the subpackages, by double-clicking the relevant packages. You can edit the sample WSDL elements created in the previous step, or drag new items from the WSDL pages of the Toolbox onto the relevant diagrams.

You can edit the WSDL-specific properties of the namespace later by double-clicking the package in the Project Browser window. Alternatively, on the WSDL Namespace Properties dialog, click on the UML button to invoke the standard Properties dialog for a package.