You use the Invoke activity to invoke specific Web service operations. Invokes can be asynchronous or synchronous.
Concepts involved when using an Invoke:
- Correlation— You can specify one or more correlation sets to keep track of a group of messages that belong together in one particular business partner interaction. Tell me more about correlation.
- Compensation— An Invoke activity can be compensated, or reversed, by including it in a scope structure. A Scope can be thought of as a logical unit of work, with a set of activities that may need reversal, and perhaps retrying, while other parts of the process can continue normally. Tell me more about compensation.
- Fault handling— Just as with compensation, an Invoke activity can include fault handling as long as it is added to a scope. In a BPEL process, fault handling undoes the partial or unsuccessful work of a scope in which a fault occurs. Tell me more about fault handling.
To add an Invoke activity to the process:
- From the palette, drag an Invoke activity to the BPEL Editor.
- In the Properties view, on the Details tab, click Run Invoke Configuration Wizard to walk you through the remaining steps.
- Select an existing service or import a new one to perform the operation.
- Select the operation. Drag the selected operation from the Services Explorer tree to the process diagram. Valid operations are available in the Operation field after you identify the service. Click Next.
- Select the variables from the operation that are associated with the input and output.
- Click Finish.
- Configure any optional properties that you want to use.