Home

 

Adding ports to a WSDL service

A WSDL service consists of one or more individual ports. A port describes an endpoint of a WSDL service that can be accessed by clients. It contains the properties name, binding, and address. The name property provides a unique name across all the ports defined within the enclosing WSDL file, the binding property references a specific binding, and the address property contains the network address of the port.

To add a port to a WSDL service, right-click the service and select Add WSDL Æ Port. This launches the Port wizard . Enter the name of the port, then click Finish. Optionally you can specify a binding and a protocol.

Note that this task is not required for our scenario because a port has already been created and added to the service in the previous task.

Figure 7-17 Port wizard

After you have created a port, you can use the Properties view to review or change any property of the port. Right-click the square representing the desired port and select Show Properties View. Then select General on the left side of the Properties view. On this page, you can enter a new name and address and you can select a binding and protocol .

Figure 7-18 Port properties shown in the Properties view

ibm.com/redbooks