The Port Element

The Port element defines a single address for a Binding. Port elements are always defined as children of the Service element. By default, Port elements are created with a SOAP address type, but you can change it to HTTP.

How to Create a Port Element

To create a Port element:
1. Select the Service element for which you want to describe a port.
2. Select Diagram > Add > Port from the Stylus Studio menu.

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

Stylus Studio adds a Port element to the WSDL. The default name is Port-0, but you can change it. Port names must be unique within a given Service element.

How to Rename a Binding Element

To rename a Port element:
1. Double-click the Port element 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 Port name in the Value field in the Properties window.

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

Port Element Properties

The following table describes the properties of the Port element.

Name
Description
Name
The Port name. Must be unique within a given Service element.
Binding
The name of a Binding element defined in the current or an imported WSDL. You can select existing Binding elements using the drop-down list in the Value field in the Properties window.
Address Type
The address type (SOAP or HTTP) associated with the binding. Creates a child element, soap:address or http:address. The default is SOAP.
Address
Specifies the location= attribute for the Address Type element - that is, the SOAP or HTTP endpoint.
Table 103. Port Element Properties

Single Source Publishing

Single source publishing is the ability to use one source of information for generating multiple types of output. Stylus Studio XML Publishing enables Single Source Publishing - publish PDF or HTML documents from Relational, XML or Legacy files.

Convert DTD to XML

Learn how to create a sample XML instance document from a DTD using Stylus Studio DTD to XML conversion tools.

Generating Java Code with Stylus Studio

This is a video tutorial on how to generate Java Code with Stylus Studio

Report Generation - Visually Defining Relationships in XML Publisher

Develop report generation applications with a powerful relationship manager in XML Publisher which provides a powerful and easy way to group and join data from one or more data sources.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member