Configuring Port Types Using the WSDL View
See Also
You can use the WSDL Editor to create, edit, and delete port types.
In a WSDL file, a port type contains one or more related operations that the web service can perform.
An example of an operation is GetQuote.
The WSDL Editor supports the following categories of operations:
- One-way. The operation receives a message as input.
- Request-response. The operation receives a message as input, and sends a message as output.
Each message contains one or more logical parts.
For each part, you must specify the name and the type of content.
If you change the name of a port type or operation,
then the WSDL Editor renames all occurrences in the same file.
To rename all occurrences in associated XSD, WSDL, and BPEL files as well,
right-click the component node and choose Refactor > Rename.
To create a port type:
- In the WSDL view, right-click the Port Types node and choose Add Port Type.
The Create New Port Type dialog box appears.
- Supply a name for the port type.
- Supply a name for the operation.
- Select the category of operation from the Operation Type drop-down list.
- Depending on the category of operation, you supply message information for the input, or both the input and output.
You can create a message from scratch by entering a new message name, or you can select an existing message from the drop-down list.
For a new message, the Add and Remove buttons enable you to add and remove message parts.
- (Optional) If the operation is a request-response operation, then you can supply message information for a fault.
- Click OK.
A port type node appears. The port type node contains an operation node.
If you created one or more messages, then the message nodes appear.
In addition, a partner link type is automatically created.
To add an operation to an existing port type:
- In the WSDL view, right-click the port type node and choose Add > Operation.
The Create New Operation dialog box appears.
- Supply a name for the operation.
- Select the category of operation from the Operation Type drop-down list.
- Depending on the category of operation, you supply message information for the input, or both the input and output.
You can create a message from scratch by entering a new message name, or you can select an existing message from the drop-down list.
For a new message, the Add and Remove buttons enable you to add and remove message parts.
- (Optional) If the operation is a request-response operation, then you can supply message information for a fault.
- Click OK.
An operation node appears.
If you created one or more messages, then the message nodes appear.
To change the name of a port type:
- If the Properties window is not visible, choose Window > Properties.
- Select the port type node.
- Set the Name property to the new name.
To change the properties of an operation:
- If the Properties window is not visible, choose Window > Properties.
- Select the operation node.
- Set the Name property to the new name.
- If you want to specify the parameter order of the operation, then perform the following steps.
The Parameter Order property is intended for use with RPC bindings.
- Click the ellipsis (...) button for the Parameter Order property.
- Move message parts from the Available Parameters list to the Current Parameters list.
- Arrange the parts in the desired order.
- Click OK.
To remove a port type or operation:
- Select the port type or operation node.
- Press Delete.
- See Also
- About the WSDL View
- Configuring Messages Using the WSDL View
Legal Notices