Introduction to Oracle Mediator

18-4 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 18–1 Mediator Editor Window Each section of the view shown in Figure 18–1 lets you perform specific design and deployment tasks. The sections in this view include the following: ■ Application Navigator The Application Navigator, shown in the upper left section of Figure 18–1 , displays the Oracle Mediator file structure. These files appear under the SOA Content folder of the project where you created an Oracle Mediator. A SOA composite application consists of the following Oracle Mediator files: – composite.xml: This file describes the entire SOA composite application. For information about the composite.xml file, see Chapter 2, Developing SOA Composite Applications with Oracle SOA Suite. – .componentType: This file describes the services and references for a service component. – .mplan: This file contains Oracle Mediator metadata. – .wsdl: The Web Services Description Language WSDL file specifies how other services call an Oracle Mediator. A WSDL file defines the input and output messages and operations of an Oracle Mediator. ■ Mediator Editor The Mediator Editor, shown in the middle of Figure 18–1 , provides a visual view of the Oracle Mediator component. This view appears when you perform one of the following actions: – Double-click an Oracle Mediator icon in the SOA Composite Editor. – Double-click the.mplan file for the Oracle Mediator in the Application Navigator. Getting Started with Oracle Mediator 18-5 ■ Source View The Source view displays the source code of an Oracle Mediator. Click Source at the bottom of the Mediator Editor shown in Figure 18–1 to view the source code. The code in Source view is immediately updated to reflect any changes to an Oracle Mediator. Example 18–1 shows sample Oracle Mediator source code: Example 18–1 Oracle Mediator Source Code ?xml version = 1.0 encoding = UTF-8? --Generated by Oracle SCA Modeler version 1.0 at [41607 10:05 PM].-- Mediator name=CustomerDataRouter xmlns:xsi=http:www.w3.org2001XMLSchema-instance xmlns=http:xmlns.oracle.comsca1.0mediator ■ History Window The History window displays history information about the Oracle Mediator file, including a revision history and side-by-side comparisons of read-only and editable versions of a file. Click History at the bottom of the Design window shown in Figure 18–1 to open the History window. Figure 18–2 shows the History view for an Oracle Mediator file. Figure 18–2 History Window ■ Property Inspector The Property Inspector, shown at the bottom of Figure 18–1 , displays details about Oracle Mediator properties. ■ Structure Window The Structure Window, shown in the lower left section of Figure 18–1 , displays a structural view of the data of an Oracle Mediator. ■ Log Window The Log Window displays messages about the validation and compilation status. 18-6 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

18.3 Creating an Oracle Mediator

You can create an Oracle Mediator in multiple ways, depending on where you are in your application development process.

18.3.1 How to Create an Oracle Mediator

You can create an Oracle Mediator in a SOA composite application of Oracle JDeveloper using one of the following methods: ■ When you create a composite application ■ From within an existing composite application ■ When you create a project ■ From within an existing project When you create an Oracle Mediator using any of these methods, the Create Mediator dialog appears so you can name the Oracle Mediator component and select a template for the interface. To create an Oracle Mediator when creating a composite application: 1. Create and Name the SOA application and project using the Create SOA Application wizard.

2. When you reach the Configure SOA Settings page, select Composite with

Mediator in the Composite Template list, as shown in Figure 18–3 . Figure 18–3 Composite with Oracle Mediator Selection in Create SOA Project Wizard

3. Click Finish.

The Create Mediator dialog appears. 4. Configure the Oracle Mediator interface, as described in Section 18.4, Configuring the Oracle Mediator Interface Definition .