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:
- Request-response. The operation receives a message as input, and sends a message as output.
- One-way. The operation receives a message as input.
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.
- Enter a name for the port type.
- Enter a name for the operation.
- Select the category of operation.
- Define the message that the operation receives as input.
You can create a message from scratch by entering a new message name in the drop-down list, 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.
- If the operation is a request-response operation, then define the message that the operation sends as output.
- (Optional) If the operation is a request-response operation, then you can define a message that the operation sends as 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.
- Enter a name for the operation.
- Select the category of operation.
- Define the message that the operation receives as input.
You can create a message from scratch by entering a new message name in the drop-down list, 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.
- If the operation is a request-response operation, then define the message that the operation sends as output.
- (Optional) If the operation is a request-response operation, then you can define a message that the operation sends as a fault.
- Click OK.
An operation node appears.
If you created one or more messages, then the message nodes appear.
To add a fault to a request-response operation:
- If the Properties window is not visible, choose Window > Properties.
- Right-click the operation node and choose Add > Fault.
The fault node appears.
- Set the Message property to the fault message.
To change the name of a port type or operation:
- If the Properties window is not visible, choose Window > Properties.
- Select the port type or operation node.
- Set the Name property to the new name.
To change the parameter order of an operation:
- The parameter order is intended for use with RPC bindings.
- If the Properties window is not visible, choose Window > Properties.
- Select the operation node.
- Click the ellipsis (...) button for the Parameter Order property.
The Parameter Order dialog box appears.
- Move message parts from the Available Parameters list to the Current Parameters list.
- Arrange the parts in the desired order.
- Click OK.
To delete 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
- Configuring Partner Link Types Using the WSDL View
Legal Notices