The Service Element

The Service element defines the Web service, and typically consists of one or more Port elements, and an optional Documentation element. You can define a name= attribute for a Service element (the default name is Service-0). Service elements are always created as children of the Definitions element.

How to Create a Service Element

To create a Service element:
1. Select the Definitions (root) element.
2. Select Diagram > Add > Service from the Stylus Studio menu.

Alternative: Right-click the Definitions element and choose Add > Service from the shortcut menu.

Stylus Studio adds a Service element to the WSDL. The default name is Service-0, but you can change it.

How to Rename a Service Element

To rename a Service element:
1. Double-click the Service element symbol in the WSDL diagram.

The name becomes editable.

2. Type a new name and press Enter.

Alternative: Using the Properties window

1. Display the Properties window if it is not already open. ( View > Properties).
2. Change the Service name in the Value field in the Properties window.

Alternative: You can change the Service name directly in the WSDL text.

Service Element Properties

The following table describes the properties of the Definitions element.

Name
Description
Name
The service name. Must be unique within a WSDL document.
Table 102. Service Element Properties

 
Free Stylus Studio XML Training: