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:

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:

  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. Supply a name for the port type.
  3. Supply a name for the operation.
  4. Select the category of operation from the Operation Type drop-down list.
  5. 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.
  6. (Optional) If the operation is a request-response operation, then you can supply message information for a fault.
  7. 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:

  1. In the WSDL view, right-click the port type node and choose Add > Operation.
    The Create New Operation dialog box appears.
  2. Supply a name for the operation.
  3. Select the category of operation from the Operation Type drop-down list.
  4. 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.
  5. (Optional) If the operation is a request-response operation, then you can supply message information for a fault.
  6. 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:

  1. If the Properties window is not visible, choose Window > Properties.
  2. Select the port type node.
  3. Set the Name property to the new name.

To change the properties of an operation:

  1. If the Properties window is not visible, choose Window > Properties.
  2. Select the operation node.
  3. Set the Name property to the new name.
  4. 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.
    1. Click the ellipsis (...) button for the Parameter Order property.
    2. Move message parts from the Available Parameters list to the Current Parameters list.
    3. Arrange the parts in the desired order.
    4. Click OK.

To remove a port type or operation:

  1. Select the port type or operation node.
  2. Press Delete.
See Also
About the WSDL View
Configuring Messages Using the WSDL View

Legal Notices