Understanding a Request-Callback Message Exchange Pattern

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 23-10 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 23–6 illustrates the request-reply-fault-callback message exchange pattern. Figure 23–6 Request-Reply-Fault-Callback Message Exchange Pattern 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. Any exception in Oracle Mediator message processing may result in a fault. Request Response Fault Callback The response, fault, and callback are sent back to the caller. Table 23–7 Cont. Response to a Request Response Fault Callback Oracle Mediator WSDL of the Routing Rule Target Response 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 Reply No Callback Exception as Fault Invoke Reply to Client Exception as Fault No Callback Invoke Reply, Fault Callback to Client Request- Reply- Fault Callback Mediator Invoke Null Reply Callback to Client Exception as Fault Part IV Part IV Using the Business Rules Service Component This part describes how to use the business rules service component. This part contains the following chapters: ■ Chapter 24, Getting Started with Oracle Business Rules ■ Chapter 25, Using Declarative Components and Task Flows