How to Implement the Request-Delayed Response Pattern with the Two One-Way Calls of the EBS
10.8 Implementing the Asynchronous Request-Delayed Response Message Exchange Pattern
The initiator of the request-delayed response pattern is a requesting service that invokes the request EBS and waits for a response. The requesting service can be a participating application, requester ABCS Impl, or an EBF. In each of these cases, the request payload is an EBM request and the response payload is an EBM response. For an error in the providing service, a response message with error information is constructed and returned to the requesting service for action. This section includes the following topics: ■ Section 10.8.1, How to Implement the Request-Delayed Response Pattern with the Two One-Way Calls of the EBS ■ Section 10.8.2, Creating Mediator Routing Services for Asynchronous Request-Delayed Response Patterns with Two One-Way Call EBS ■ Section 10.8.3, Asynchronous Request-Delayed Response MEP Error Handling For more information about enabling the ABCS both requester and provider see Chapter 11, Designing Application Business Connector Services , Chapter 12, Constructing the ABCS , and Chapter 13, Completing ABCS Development . For more information about enabling the EBF, see Chapter 15, Designing and Constructing Enterprise Business Flows .10.8.1 How to Implement the Request-Delayed Response Pattern with the Two One-Way Calls of the EBS
To implement the request-delayed response pattern with the two one-way calls of the EBS: 1. Create EBS WSDLs. 2. Create Mediator routing services for asynchronous request-delayed response patterns with two one-way call EBSs. 3. Route the request from the requesting service to the correct providing service in the routing service of the one-way call operation of the request EBS. 4. Implement error handling for logging and notification based on fault policies. 5. Route the response message in the EBS response to the correct requesting service. Figure 10–4 illustrates the request-delayed response pattern: Note: Perform these steps in addition to the regular steps required for the requesting service and the providing service. 10-20 Developers Guide for Oracle Application Integration Architecture Foundation Pack Figure 10–4 Request-Delayed Response Pattern10.8.1.1 How to Create the EBS WSDLs for the Request-Delayed Response MEP
To create the EBS WSDLs for the request-delayed response MEP: 1. For the entity EBS, use the WSDLs from the Enterprise Service Library of the Foundation Pack. 2. For the process EBS, use the TemplateEBS.wsdl available in the Foundation Pack and create a Process EBS WSDL. 3. The EBS WSDLs must have two portTypes: ■ PortType for all operations used for modeling synchronous request-response operations and request-only operations. The name must not specify the Request. Service operations supporting the synchronous request-response MEP must be defined in one portType, and the operation must have input, output, and fault message defined. ■ PortType for asynchronous response operations. The name must specify Response. Service operations supporting asynchronous request-response pattern must have two operations, one operation for sending the request message and another for processing the response message. 4. Two Mediator routing services must be created for each of the portTypes. 10.8.2 Creating Mediator Routing Services for Asynchronous Request-Delayed Response Patterns with Two One-Way Call EBS To create Mediator routing services: 1. Create Mediator projects. Designing and Developing Enterprise Business Services 10-21 2. Create routing services. 3. Create routing rules.10.8.2.1 How to Create Mediator Projects for the Request-Delayed Response MEP
To create Mediator projects for the request-delayed response MEP: 1. Create two Mediator projects, one for each of the portTypes in the EBS WSDL. If all of the services operations for an EBS have either synchronous request-response or fire-and-forget pattern, then all of these operations must reside in only one portType, so only one Mediator routing service is used. If the EBS has at least one asynchronous request-response operation, then two portTypes must exist, two Mediator Routing Services and two Mediator Projects one for each routing service. 2. Follow the naming convention detailed in Chapter 29, Oracle AIA Naming Standards for AIA Development . Examples of typical names for the Mediator projects are: ■ CustomerPartyEBSV2 This example has a routing service with all operations for synchronous request-response and request-only. ■ CustomerPartyEBSResponseV2 This example has a routing service with all operations for asynchronous request-response.10.8.2.2 How to Create Routing Services
To create routing services for the request-delayed response MEP: 1. Put the EBS WSDL created into the Mediator project folder. 2. Create a routing service and name according to the naming convention detailed in Chapter 29, Oracle AIA Naming Standards for AIA Development . 3. Select the WSDL. The WSDL must be parsed and the portType name filled in the portType field of the routing service. 4. Select the portType matching with the routing service. Save the routing service. The routing service created for a portType must have all the operations, including compensate operations, specified in that portType in the EBS WSDL.10.8.2.3 How to Create Routing Rules
For the asynchronous request-delayed response EBS, routing rules must be created for both request and response. Routing Rules for Request EBS The routing rules for request EBS are the same as those explained in the synchronous request-response section. Note: These guidelines are in addition to the implementation of asynchronous message exchanging patterns. 10-22 Developers Guide for Oracle Application Integration Architecture Foundation Pack For more information, see Section 10.7.3, How to Create Routing Services for the Synchronous Request-Response MEP . Routing Rules for Response EBS There must be two routing rules. To create routing rules for the response EBS: 1. Routing to the correct requesting service. When multiple requesting services from multiple participating applications are invoking a request EBS and are waiting for a delayed response, then you must route the response to the correct requesting service. As illustrated in Figure 10–5 , set the EBMHeaderSenderWSAddresswsa:ReplyTowsa:ServiceName to the name of the requesting service name in the requesting service-Application Business Message ABM to EBM transformation-before invoking the request EBS. Figure 10–5 Structure of the WSAddress Type Element In the providing service, this information is transferred from the request EBM to the response EBM. This information is used in the response EBS by putting a routing rule in the filter as: EBO NameResponseEBM\corecom:EBMHeader\Sender\ WSAddresswsa:ReplyTowsa:ServiceName = Requesting Service Name The target endpoint for the evaluation of this rule should be set to the requesting service. For every requesting service of the request EBS that is waiting for a response EBS to send back a response, specify a routing rule as shown above. 2. CAVS routing rule. Designing and Developing Enterprise Business Services 10-23 The CAVS routing rules are the same as that explained in the Sync Request-Response section. For more information about enabling the ABCS both requester and provider see Chapter 11, Designing Application Business Connector Services , Chapter 12, Constructing the ABCS , and Chapter 13, Completing ABCS Development . Error Handling Implementation For more information, see Section 24.5, Implementing Error Handling and Recovery for the Asynchronous Message Exchange Pattern to Ensure Guaranteed Message Delivery.10.8.3 Asynchronous Request-Delayed Response MEP Error Handling
Parts
» Oracle Fusion Middleware Online Documentation Library
» How to Use the AIA Development Guide Introduction to Project Lifecycle Workbench
» Select a Service Type value: Requestor ABCS, Provider ABCS, Enterprise
» Use the query criteria in the Search area to locate the service solution component
» How to Set Up Environments to Enable Design-Time Harvesting
» Introduction to Bills of Material
» How to Generate a Bill of Material for an AIA Lifecycle Project
» How to View a Bill of Material for an AIA Lifecycle Project
» Introducing Project Lifecycle Workbench Seed Data
» Introduction Oracle Fusion Middleware Online Documentation Library
» Input for Deployment Plan Generator Executing Deployment Plan Generator
» Deploying New or Custom Built Artifacts
» Undeploying Services Oracle Fusion Middleware Online Documentation Library
» Understanding the ODIBOM.xml File
» Understanding the ODI Deployment Plan
» Understanding the Service Annotation Element
» Understanding the Reference Annotation Element Understanding the TransportDetails Element
» How to Annotate the Service Element in a Requester ABCS Composite
» How to Annotate the Service Element in Composite Business Process Composite
» Understanding EBS Types Working with the Enterprise Business Service Library
» Understanding Design Guidelines Understanding Design Considerations
» Creating Routing Rules Working with Message Routing
» Routing at the EBS Guidelines for EBS Routing Rules
» How to Implement Fire-and-Forget Pattern with EBS One-Way Calls Creating EBS WSDLs
» How to Implement the Request-Delayed Response Pattern with the Two One-Way Calls of the EBS
» ABCS Types Introduction to ABCS
» Defining the Role of the ABCS
» Constructing ABM Schemas Analyzing the Participating Application Integration Capabilities
» Introduction to MEPs Choosing the Appropriate MEP
» Outbound Interaction with the Application
» Using BPEL for Building ABCS
» Prerequisites Constructing an ABCS
» ABCS as a Composite Application How Many Components Need to Be Built
» How to Construct the ABCS Composite Using JDeveloper Developing the BPEL Process
» How to Create References, Services, and Components Moving Abstract Service WSDLs in MDS
» Setting Correlation for the Asynchronous Request-Delayed Response MEP
» Using the Programming Models for the Request-Delayed Response Pattern
» Create Invoking Enterprise Business Services
» Update Invoking Enterprise Business Services
» Delete Sync Invoking Enterprise Business Services
» Validate Invoking Enterprise Business Services
» Process Invoking Enterprise Business Services
» Query Invoking Enterprise Business Services
» Introduction to Enabling Requester ABCS for Extension
» Introduction to Enabling Provider ABCS for Extension
» How to Design Extensions-Aware ABCS
» Designing an ABCS Composite with Extension Defining Service at Extension Points
» How to Specify a Concrete WSDL at Deployment Time
» Interfacing with Transport Adapters
» How to Develop Transport Adapters When to Put Adapters in a Single Composite
» How to CAVS Enable the Requester ABCS Introduction to the CAVSEndpointURL Value Designation
» How to Ensure Transactions in AIA Services
» Transactions in Oracle Mediator Transactions in BPEL
» Developing ABCS to Participate in a Global Transaction How to Transaction-Enable AIA Services
» Guidelines for Versioning Versioning ABCS
» Introduction to Enterprise Business Flows
» How to Implement the EBF as a BPEL Service Overview of B2B Integration Using AIA
» B2B Support in AIA Error Handling Framework
» How to Identify the B2B Document Protocol
» How to Identify the B2B Document Type and Definition
» How to Identify the EBO, EBS, and EBM to Be Used How to Design Mappings for the B2B Document
» Introduction to a Provider B2B Connector Service How to Identify the Message Exchange Pattern
» How to Develop a B2BCS Service Contract
» How to Annotate B2B Connector Services
» How to Support Trading Partner-Specific Variants
» How to Enable Error Handling
» How to Route Based on Trading Partner B2B Preferences
» How to Test Using CAVS How to Test Using Dummy Trading Partner Endpoints
» Monitoring Using Oracle B2B Reports Monitoring Using Oracle Enterprise Manager Console
» How to Support Trading Partner-Specific Variants How to Enable Error Handling
» If an additional target is needed, click the Additional Target button on the Service
» Optionally, click the Save As button to save a service solution component request Click Finish.
» Updating SOA MDS with AIA MetaData Using MDS in AIA Content of AIA_HOMEAIAMetaData
» Working with AIA Components Content in AIA_HOMEAIAMetaData
» How to Change an Existing File How to Create a New File
» Introduction to the Tools Used
» Understanding Integration Styles with Integration Framework
» Bulk Data Processing Integration Style Choice Matrix
» Identifying the EBO Designing an Oracle AIA Integration Flow
» Enter your search criteria and click Search to execute a search for a particular
» Inbound Connectivity Outbound Connectivity
» When to Use Web Services with SOAPHTTP
» Session Management for Web Services with SOAPHTTP
» Error Handling for Web Services with SOAPHTTP
» Security for Web Services with SOAPHTTP Message Propagation Using Queues or Topics
» Ensuring Guaranteed Message Delivery When to Use JCA Adapters
» Outbound - Siebel Application Interaction with AIA Services Web Services with SOAPHTTP
» Inbound: E-Business Suite Application Interaction with AIA Services Concurrent Program Executable
» Business Event Subscription JCA Connectivity Using OAPPS Adapter
» Outbound: Oracle E-Business Suite Application Interaction with AIA Services
» Testing an Oracle AIA Integration Flow Design Guidelines
» Initial Data Loads High Volume Transactions with Xref Table Intermittent High Volume Transactions
» Using Error Handling Oracle Fusion Middleware Online Documentation Library
» Click OK to save your changes. Click the Generate and Deploy tab to deploy it on the OC4J server.
» Considerations for Creating Transformation Maps Handling Missing or Empty Elements
» How to Map an Optional Source Node to an Optional Target Node How to Load System IDs Dynamically
» Introduction to DVMs When to Use DVMs Using Cross-Referencing
» Standard Elements Introducing EBM Header Concepts
» Sender Introducing EBM Header Concepts
» Target Introducing EBM Header Concepts
» BusinessScope Introducing EBM Header Concepts
» Use Case: Request-Response Use Case: Asynchronous Process
» Use Case: Synchronous Process with Spawning Child Processes
» EBMTracking Introducing EBM Header Concepts
» Understanding Oracle BPEL Error Handling Understanding Oracle Mediator Error Handling
» What Do I Need to Know About Fault Policy Files
» How to Implement Fault Handling in BPEL Processes
» Guidelines for Defining Fault Policies
» Guidelines for BPEL Catch and Catch-All Blocks in Synchronous Request-Response
» Guidelines for Configuring Mediator for Handling Business Faults
» Overview Implementing Error Handling for the Synchronous Message Exchange Pattern
» Configuring Milestones Implementing Error Handling for the Synchronous Message Exchange Pattern
» Configuring Services Between Milestones
» Describing the EBMReference Element Describing the B2BMReference Element
» Describing the FaultNotification Element
» Introduction to Extending Fault Messages
» In the Error Extension Handler field on the Error Notifications page, enter the
» Introduction to Extending Error Handling Implementing an Error Handling Extension
» Synchronous Request-Reply Pattern: How to get Synchronous Response in AIA
» Asynchronous Fire-and-Forget Pattern AIA Message Processing Patterns
» Guaranteed Delivery Pattern: How to Ensure Guaranteed Delivery in AIA
» Service Routing Pattern: How to Route the Messages to Appropriate Service Provider in AIA
» Extending Existing Schemas in AIA
» Extending AIA Services Extending Existing Transformations in AIA
» Enabling Security for AIA Services
» Overriding Policies Using a Deployment Plan Testing Secured Services using CAVS
» Oracle AIA Recommendations for Policies
» AIA Security Configuration Properties
» Understanding the Structure for Security Context Using Attribute Names
» Interpreting Empty Element Tags in XML Instance Document
» Purging the Completed Composite Instances Syntactic Functional Validation of XML Messages
» Provide Provision for Throttling Capability Artifacts Centralization Separation of Concerns
» Adapters Inside ABCS Composite OR as Separate Composite AIA Governance
» Using BPEL as Glue, Not as a Programming Language
» Avoiding Global Variables Wherever Possible
» How to Use Baselines How to Handle Resource Saturation How to Use Proactive Monitoring
» How to Eliminate Bottlenecks
» How to Tune the Oracle Database Introducing Automatic Workload Repository
» Configuring Performance Related Database Initialization Parameters
» Tuning Redo Logs Location and Sizing Automatic Segment-Space Management ASSM
» Configuring Database Connections and Datasource Statement Caching
» Oracle Metadata Service MDS Performance Tuning
» Configuring SOA Infrastructure Properties
» Configuring BPEL Process Service Engine Properties
» Configuring BPEL Properties Inside a Composite
» Configuring Mediator Service Engine Properties
» How to Tune JMS Adapters How to Tune AQ Adapters
» Overview of AIA Error Handler Framework Purging the Completed Composite Instances
» How to Optimize the JVM Heap - Specifying Heap Size Values
» XML Naming Standards General Guidelines
» Composites Composite Business Process Enterprise Business Services
» Requester Application Business Connector Service Provider Application Business Connector Services
» DVMs DVMs and Cross References
Show more