IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Enterprise Service Bus programming > Invocation of Services

Service Invoke and Callout nodes

You can call a service using either a Service Invoke mediation primitive or a Callout node.


Service Invoke mediation primitive

A Service Invoke mediation primitive is used to call a service from inside a mediation flow, rather than waiting until the end of the mediation flow and using the Callout node. The input message is used to call the service, and if the call is successful, the response is used to create the output message. If the call is unsuccessful, you can retry the same service or call another service.

You can have multiple Service Invoke mediation primitives inside one mediation flow. Therefore, you can have a series of service calls. You can use the Service Invoke mediation primitive in a request or response mediation flow.


Callout node

The Callout receives the message and calls the requested service and operation. There is a Callout node for each connected target operation in the mediation flow.

If the call is successful, the Callout Response node in the response flow receives the response message.

If the call is unsuccessful, the Callout can be set to retry service invocations depending on the type of fault received.

Invocation of Services