In the Name field, enter a name for the Oracle Mediator service component. From the Template list, select Interface Definition from WSDL, as shown in

18-16 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite 4. If you do not want to create an exposed service with SOAP bindings that is automatically connected to your Oracle Mediator service component, deselect the Create Composite Service with SOAP Bindings option.

5. To the right of the Input field, click Search to select a schema element for the input

message. By default, the singleString schema element is selected for the input message.

6. Click OK.

18.4.3.2 What Happens When You Create an Oracle Mediator with a One-Way Interface Definition

The Oracle Mediator files that define a one-way interaction are generated under the specified application and project in the Application Navigator, and the new Oracle Mediator appears in the Mediator Editor in Design view. A WSDL file is also generated with the same name as the Oracle Mediator. Figure 18–14 shows how an Oracle Mediator created with a one-way interface appears in the Mediator Editor. The arrow to the left of the execute operation in Figure 18–16 represents a one-way operation. Figure 18–14 One-Way Interface Oracle Mediator in the Mediator Editor

18.4.4 Creating an Oracle Mediator with a Synchronous Interface Definition

Oracle Mediator supports synchronous request-response interactions. In a synchronous interaction, a client sends a request to a service and receives an immediate response. The client does not proceed further until the response arrives. Note: You can use any XSD schema to specify the format of the input document that Oracle Mediator processes. Here is a sample schema: xsd:schema attributeFormDefault=qualified elementFormDefault=qualified targetNamespace=http:samples.otn.comhelloworld xmlns:xsd=http:www.w3.org2001XMLSchema xmlns=http:samples.otn.comhelloworld include namespace=http:samples.otn.comhelloworld schemaLocation=helloworld.xsd xsd:element name=name1 type=xsd:string xsd:element name=result1 type=xsd:string xsd:schema Getting Started with Oracle Mediator 18-17

18.4.4.1 How to Create an Oracle Mediator with a Synchronous Interface Definition

The Synchronous Interface template in the Create Mediator dialog creates an Oracle Mediator for a synchronous interaction. To create an Oracle Mediator with a synchronous interface definition: 1. Create an Oracle Mediator as described in Section 18.3, Creating an Oracle Mediator . The Create Mediator dialog appears.

2. In the Name field, enter a name for the Oracle Mediator.

3. From the Template list, select Synchronous Interface, as shown in

Figure 18–15 . Figure 18–15 Synchronous Interface Template Selection on the Create Mediator Dialog 4. If you do not want to create an exposed service with SOAP bindings that is automatically connected to your Oracle Mediator, deselect the Create Composite