Using the WSDL Editor

Configuring Port Types Using the WSDL View

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:

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.

ProcedureTo create a port type

  1. In the WSDL view, right-click the Port Types node and choose Add Port Type. The Create New Port Type dialog box appears.

  2. Enter a name for the port type.

  3. Enter a name for the operation.

  4. Select the category of operation.

  5. 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.

  6. If the operation is a request-response operation, then define the message that the operation sends as output.

  7. (Optional) If the operation is a request-response operation, then you can define a message that the operation sends as a fault.

  8. 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.

ProcedureTo add an operation to an existing port type

  1. In the WSDL view, right-click the port type node and choose Add -> Operation.

    The Create New Operation dialog box appears.

  2. Enter a name for the operation.

  3. Select the category of operation.

  4. 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.

  5. If the operation is a request-response operation, then define the message that the operation sends as output.

  6. (Optional) If the operation is a request-response operation, then you can define a message that the operation sends as a fault.

  7. Click OK.

    An operation node appears. If you created one or more messages, then the message nodes appear.

ProcedureTo add a fault to a request-response operation

  1. If the Properties window is not visible, choose Window -> Properties.

  2. Right-click the operation node and choose Add -> Fault.

    The fault node appears.

  3. Set the Message property to the fault message.

ProcedureTo change the name of a port type or operation

  1. If the Properties window is not visible, choose Window -> Properties.

  2. Select the port type or operation node.

  3. Set the Name property to the new name.

ProcedureTo change the parameter order of an operation

The parameter order is intended for use with RPC bindings.

  1. If the Properties window is not visible, choose Window -> Properties.

  2. Select the operation node.

  3. Click the ellipsis (...) button for the Parameter Order property.

    The Parameter Order dialog box appears.

  4. Move message parts from the Available Parameters list to the Current Parameters list.

  5. Arrange the parts in the desired order.

  6. Click OK.

ProcedureTo delete a port type or operation

  1. Select the port type or operation node.

  2. Press Delete.