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:
- In the Graph view, right-click your port type. Click Add Child
> Operation.
- In the dialog, enter a name for the operation.
- 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
- 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.