Select an event definition file .edl and click OK. Select one or more events in the Event field, as shown in

18-24 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

18.4.7.2 Routing Rules

Routing rules are mediation logic or execution logic that you define to achieve the requisite mediation. Below is an overview of the routing rule features; for more information about defining routing rules, see Section 19.2, Defining Routing Rules. You can specify the following to create a routing rule: ■ Operation or Event A routing rule can be triggered either by a service operation or an event subscription. The service operation can be synchronous, asynchronous, or one-way. ■ Java Callouts Java callouts perform external Java logic at various points in the execution of the Oracle Mediator. ■ Static Routing Rule A static routing rule is not expected to change depending on the invocation context. In this case, the routing can be an echo, a routing to another service, or a publishing of an event. Static routing rules include the following information: – Request Handler This defines how Oracle Mediator handles incoming requests. – Reply Handler This defines how the synchronous response from the called service is handled by Oracle Mediator. – Fault Handler This defines how the named or declared faults from the called service are handled by Oracle Mediator. – Callback Handler This defines how the asynchronous response and callback from the called service are handled by Oracle Mediator. – Timeout Handler in Callback This defines how long Oracle Mediator waits for the asynchronous response and callback before performing timeout handling for the particular asynchronous request. – Event Publishing and Service Invocation This calls other services or publishes an event depending on the configuration of the handlers. – Sequential or Parallel Execution Each routing rule execution can be configured to be either sequential that is, running in the same thread or parallel that is, running in different threads. – Filter Expression Note: For synchronous service invocations, the routing rule should always be sequential. Getting Started with Oracle Mediator 18-25 This defines a filter to be applied to the message before a rule is executed. Filters use XPath standards and enable selective execution of Oracle Mediator routing rules. – Semantic Validation This uses the Schematron validation standard to define semantic validation of incoming requests. Semantic validation also verifies that the data is correct. – Transformation This transforms incoming data to a format that is compliant with the called services or published events. Transformation is based on XSL transformation standards. – Assign This manipulates headers and properties for a message to meet the requirements of the called service. ■ Dynamic Routing Rule A dynamic routing rule lets you externalize the routing logic to an Oracle Rules Dictionary, which in turn enables dynamic modification of the routing logic in a routing rule. This feature depends on a decision service and Oracle Rules to obtain the routing logic at runtime.

18.5 Generating a WSDL File

You can generate the WSDL file for a message using an XML schema definition XSD file or using a sample file. When working with Oracle Mediator, you can generate a WSDL file at either of the following times: ■ When you are creating an Oracle Mediator and you select the Interface Definition from WSDL template in the Create Mediator dialog, selecting Generate WSDL from Schemas next to the WSDL URL field opens the Create WSDL dialog. ■ When you have an Oracle Mediator with no interface defined and you click Define Service next to the WSDL URL field in the Mediator Editor, selecting Generate WSDL from Schemas next to the WSDL URL field opens the Create WSDL dialog. The Create WSDL dialog populates standard fields, such as the file name, directory, and namespace; and the dialog changes depending on the interface type you select. You can specify the same or different schema files for the message inputs.

18.5.1 How to Generate a WSDL File

The way you configure a WSDL file depends on the type of interface being defined by the WSDL file. You can define a one-way interface, a synchronous interface, or an asynchronous interface. Note: Oracle recommends using a Unicode database with AL32UTF8 as the database character set for full globalization support in Oracle Mediator.