Configuring WSDL Port Types

See Also

You can use the WSDL Editor to create port types. In addition, you can use the WSDL Editor to add operations to an existing port type.

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 1.1 specification defines 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.
  5. Depending on the category of operation, you supply message information for the input, the output, 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. For a new message, the Add and Remove buttons enable you to add and remove message parts.
  6. (Optional) If the category of operation is Request-Response or Solicit-Response, 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.

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.
  4. Depending on the category of operation, you supply message information for the input, the output, 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. For a new message, the Add and Remove buttons enable you to add and remove message parts.
  5. (Optional) If the category of operation is Request-Response or Solicit-Response, 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 an operation, set the Parameter Order property accordingly.

To remove a port type or operation:

See Also
Configuring WSDL File Components

Legal Notices