Under Categories, select Service Components, and then select Mediator from the

Getting Started with Oracle Mediator 18-11 Figure 18–8 Oracle Mediator with no Interface Definition in the Mediator Editor

18.4.1.3 How to Define an Interface for an Oracle Mediator

After you create an Oracle Mediator without an interface definition, you must define the interface by subscribing to events or by defining services. To subscribe to events: To subscribe to events, the events must be defined in an Event Definition EDL file. 1. Open the Oracle Mediator you want to edit in the Mediator Editor.

2. In the Routing Rules section, click Add Event Subscription.

The Subscribed Events dialog appears.

3. Click Add.

The Event Chooser dialog appears.

4. To the right of the Event Definition File field, click Search and then browse to and

select an EDL file. The Event field is populated with the events defined in the EDL file. 5. Select one or more events and click OK. 6. In the Consistency list, select a level of delivery consistency for the event. 7. In the Run as publisher field, either leave the default value of yes or select no. 8. Double-click the Filter field to open the Expression Builder and define an expression for filtering the event.

9. Click OK.

For more information about the Consistency, Run as publisher, and Filter fields of an event, see Section 18.4.6, Creating an Oracle Mediator for an Event Subscription. To define services: You can define service for an Oracle Mediator with no interface definition in the following two ways: ■ Connect the Oracle Mediator to a service through a wire in the SOA Composite Editor. ■ Use the Define Service option in the Mediator Editor. 18-12 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite To define services for an Oracle Mediator through a wire: ■ In the SOA Composite Editor, drag a wire from an Oracle Mediator to a service. For more information about wires and how to wire a service component to a service, see Section 2.5.1, How to Wire a Service and a Service Component. The service for an Oracle Mediator is automatically defined using the WSDL file from the wire source. For example, if you connect the ReadFile service shown in Figure 18–9 to the CustomerDataRouter Oracle Mediator, the CustomerDataRouter Oracle Mediator automatically inherits the service definition of the ReadFile service. Figure 18–9 Connecting Oracle Mediator to a Service To define services for an Oracle Mediator in the Mediator Editor: 1. Display the Oracle Mediator you want to edit in the Mediator Editor.

2. To the right of the WSDL URL field, click Define Service.

The Define Service dialog appears, as shown in Figure 18–10 . Note: You can also connect an Oracle Mediator with a defined interface and defined reference to a service through a wire. However, to connect Oracle Mediator to a service, the interface of the Oracle Mediator and of the service must match.