Understanding a Request-Reply-Fault Message Exchange Pattern

23-8 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

23.5 Understanding a Request-Reply-Callback Message Exchange Pattern

In a request-reply-callback interaction, the Oracle Mediator is invoked and sends a response and an asynchronous reply to the initial caller. Depending on the type of routing rule target, the responses, faults, and callbacks are handled as shown in Table 23–6 : Figure 23–5 illustrates the request-reply-callback message exchange pattern. Table 23–6 Response When Oracle Mediator’s WSDL Is a Request Response Callback Routing Rule Target Type Response Request There should be at least one sequential routing rule that returns a response. No callback is sent to the caller if there is no routing rule with a defined callback. Request Response There should be at least one sequential routing rule that returns a response. No callback is sent if there is no routing rule with a defined callback. Request Response Fault There should be at least one sequential routing rule that returns a response. No callback is sent to the caller if there is no routing rule with a defined callback. Request Callback There should be at least one sequential routing rule that returns a response. Oracle Mediator returns null when there is no response to be sent. Request Response Callback The response and callback are sent back to the caller. Request Response Fault Callback The response and callback are sent back to the caller. The fault is forwarded to another target or event. Understanding Message Exchange Patterns of an Oracle Mediator 23-9 Figure 23–5 Request-Reply-Callback Message Exchange Pattern

23.6 Understanding a Request-Reply-Fault-Callback Message Exchange Pattern

In a request-reply-fault-callback interaction, the Oracle Mediator is invoked and sends a response, an asynchronous reply, and one or more fault types to the initial caller. Depending on the type of routing rule target, the responses, faults, and callbacks are handled as shown in Table 23–7 : Table 23–7 Response to a Request Response Fault Callback Oracle Mediator WSDL of the Routing Rule Target Response Request There should be at least one sequential routing rule with a request-callback service. No callback is sent to the caller if there is no routing rule with a defined callback. Request Response There should be at least one sequential routing rule with a request-callback service. No callback is sent to the caller if there is no routing rule with a defined callback. Request Response Fault There should be at least one sequential routing rule with a request-callback service. No callback is sent to the caller if there is no routing rule with a defined callback. Client One-Way Target Reference or Component Request-Response- Fault Target Reference or Component Request-Response Target Reference or Component Asynchronous Request-Callback Target reference or Component Invoke Null Response No Callback Invoke Reply to Client No Callback Invoke Null Reply Callback to Client Invoke Reply and Callback to Client Fault Fwd Request- Reply- Callback Mediator