IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Building mediation flows
Invoking a service
Invoking refers to the ability to call an operation of a referenced service in the mediation flow. This can be done either at the end of a request flow using a Callout primitive or inline using the Service Invoke primitive.
To be able to invoke an operation on a service reference you must:
- If you need to, create an interface and the operation.
- Click the operation to open its implementation.
- You now have two options:
- To invoke the service inline, add the Service Invoke primitive to the canvas.
- To use a callout invoke, add a callout to the canvas.
- Select the reference and operation that you want to invoke.
- Wire the primitives as you normally would and set their properties.
- Invoking a service by using a callout
Invoking or calling a service in a mediation flow by using a callout is discussed. In this case, the response is in a different transaction, in a response flow. The call is made at the end of a request flow.- Invoking a service within a flow
Use a Service Invoke mediation primitive to call an intermediate service as part of a normal mediation flow. The result of the call is returned in the same transaction.- Retrying a failed service invocation
Callout and Service Invoke primitives provide retry capabilities for failed service invocations.
Related information:
Service Invoke mediation primitive