What You May Need to Know About the Mediator Editor

18-26 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite To generate a WSDL file for a one-way interface from an XSD file: Perform these steps after the Create WSDL dialog appears when you are creating an Oracle Mediator component or when you are defining a service for an Oracle Mediator component. 1. On the Create WSDL dialog, accept the default values or enter the following information for the WSDL file: ■ File Name : A unique name for the WSDL file. ■ Directory : The directory where you want to store the WSDL file. By default, it is stored in the same location as the Oracle Mediator file. This must be the current project directory or one of its subdirectories. If the specified directory does not exist, Oracle JDeveloper creates it. ■ Namespace : A namespace address for the WSDL file; for example, http:oracle.comesbnamespacesMediator. The namespace that you specify is defined as the tns namespace in the WSDL file. ■ Port Type : The name of the port type in the WSDL file that contains the operation to use. ■ Operation : The name of the action to perform; for example, executeQuery.

2. In the Interface Type field, select One-Way Interface.

The Input field appears, as shown in Figure 18–24 . Figure 18–24 Create WSDL Dialog for a One-Way Interface

3. To the upper right of the Input field, click Add a new message part.

Note: Spaces and special characters are not allowed in an operation name or port type. Only alphabetic and numeric characters are supported, and the first character cannot be a number. Getting Started with Oracle Mediator 18-27 The Add Message Part dialog appears, as shown in Figure 18–25 . Figure 18–25 Add Message Part Dialog

4. In the Part Name field, enter a name for the message part.

5. To the right of the URL field, click the browse for schema file icon to browse for

the URL. The Type Chooser dialog appears and contains a list of the schema files XSD files, as shown in Figure 18–26 . Figure 18–26 Type Chooser Dialog

6. Expand the Type Explorer tree to locate and select the schema element to use.

If the schema you want to use is not located in the project in which you are working, you can import a schema XSD file or WSDL file into the project using the Import Schema File or Import WSDL icon in the upper right corner of the dialog. After you specify a file, Oracle JDeveloper parses it to determine the defined schema elements and displays them in a list from which you select.

7. Select the root element of the XSD file and click OK.

Note: If you want to use a schema XSD file that resides on your local file system, ensure that the XSD file and any XSD files that it imports all reside in the Oracle JDeveloper project directory. This ensures that the schema is deployed with the project and is made available at runtime. 18-28 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite The Add Message Part dialog reappears with the URL and Schema Element fields populated from the Type Chooser dialog. If you selected an XSD simple type, these fields are replaced by a Simple Type field.

8. Click OK on the Add Message Part dialog.

The input information appears in the Input field of the Create WSDL dialog. 9. If needed, repeat the above steps to define additional message parts.

10. Click OK.

To generate a WSDL file for a synchronous interface from an XSD file: Perform these steps after the Create WSDL dialog appears when you are creating an Oracle Mediator component or when you are defining a service for an Oracle Mediator component. 1. On the Create WSDL dialog, enter the following information for the WSDL file: ■ File Name : A unique name for the WSDL file. ■ Directory : The directory where you want to store the WSDL file. By default, it is stored in the same location as the Oracle Mediator file. ■ Namespace : A namespace address for the WSDL file; for example, http:oracle.comesbnamespacesMediator. The namespace that you specify is defined as the tns namespace in the WSDL file. ■ Port Type : The name of the port type in the WSDL file that contains the operation to use. ■ Operation : The name of the action to perform; for example, executeQuery.

2. In the Interface Type field, select Synchronous Interface.

The Input, Output, and Fault fields appear, as shown in Figure 18–27 . Note: Partner link types are generally used in BPEL, so you do not need to select Generate partnerlinkType extension for Oracle Mediator. Note: Spaces and special characters are not allowed in an operation name or port type. Only alphabetic and numeric characters are supported, and the first character cannot be a number.