The image shows a diagram of what happens when one request results in a mandatory response and an optional response. The following actions take place:

  1. The client BPEL process has a scope activity in an onMessage attribute. The scope activity has a Call service invoke activity to send the request to the service BPEL process, and Wait for Callback receive activity for the callback.

  2. The client Call service invoke activity sends a request to the service BPEL process, by way of a WSDL partner link.

  3. The service BPEL process has the following activities:

  4. If the product is delayed, the switch activity in the service selects Message A and sends it to the Wait for Callback receive activity in the client BPEL process.

  5. When the product ships, the invoke activity sends Message B to the Wait for Callback receive activity in the client BPEL process.