|
Home >Online Product Documentation >Table of Contents >The Service Element The Service ElementThe 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 PropertiesThe following table describes the properties of the Definitions element. |