# Adding an operation

An operation names the operation and lists the expected inputs and outputs. The operation element may also contain a fault sub-element that describes any error data the operation may return.

Using these, you can declare four transmission primitives that an endpoint can support:

- One-way. The endpoint receives a message.
- Request-response. The endpoint receives a message, and sends a correlated message.
- Solicit-response. The endpoint sends a message, and receives a correlated message.
- Notification. The endpoint sends a message.

You can add an operation to a port type or a port binding.

To add an operation to a port type, follow these steps:

1. In the Graph view, right-click your port type. Click Add Child > Operation.
2. In the dialog, enter a name for the operation.
3. Right click on the operation to add an input, output or fault objects. Depending on an operation's inputs and outputs it can be classified as follows:
   - One way operation: input
   - Request response operation: input, output
   - Solicit response operation: output, input
   - Notification operation : output
4. Type any information about the operation you wish the user to read in the Documentation pane.

Tip: You can also create a new operation for your port type using the Outline view.

Related concepts
Editing WSDL files with the WSDL Editor

Related tasks
Creating a new WSDL file
Editing WSDL files

(C) Copyright IBM Corporation 1999, 2005. All Rights Reserved.