In the Variables field, expand the message definition and select the message Click Insert Into Expression.

19-20 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite The Request Transformation Map dialog appears. You can select an existing XSL file or create a new XSL file with the XSLT Mapper to perform the required transformation. 2. Do one of the following: ■ If the mapping file exists, select Use Existing Mapper File and then click Browse to find and select the mapper file to use. ■ To create a mapper file, select Create New Mapper File, and then enter the input information. 3. Repeat the above steps for any synchronous reply, callback, response, or fault messages. In case of synchronous reply or fault message, the Reply Transformation Map dialog or the Fault Transformation Map dialog contains an Include Request in the Reply Payload option, as shown in Figure 19–18 . Figure 19–18 Reply Transformation Map Dialog 4. To create an initial variable that contains the original message of a synchronous interaction, select the Include Request in the Reply Payload option. The variable is created, as shown in Figure 19–19 . Figure 19–19 Initial Variable in XSL File Note: An initial message can also consist of multiple parts. You can use initial.partname to access a part of the initial message. If the parts of the inbound and outbound messages are identical, then no transformation is required for data interchange. Creating Oracle Mediator Routing Rules 19-21 For information about the XSLT Mapper, see Chapter 37, Creating Transformations with the XSLT Mapper. To add user-defined extension functions: You can use the Expression Builder to include user-defined extension functions. 1. Create an XPath function. 2. Register the Jaxen XPath function with an Oracle Mediator service component in the xpath-function.xml file on the server. 3. Start Oracle JDeveloper. 4. Use the Expression Builder to customize the expression. 5. Deploy the Oracle JDeveloper project to Oracle WebLogic Server. 6. Copy the JAR file containing the user-defined extension functions to the BEAHOMEuser_ projectsdomainssoainfraautodeploysoa-infraAPP-INFlib directory. 7. Modify the .mplan file of the project as follows: ■ Add the function namespace you defined for the extension functions under the Mediator element. ■ Add the function names under the Expression element. This is shown in Figure 19–20 . Figure 19–20 Project .mplan file – Modified to Use User-Defined Extension Functions 8. Invoke the test page with a suitable payload.

19.2.2.9 How to Assign Values

You can use the Assign Values field to propagate the headers, payload, and properties of a message from source to target. Figure 19–21 shows the Assign Values dialog that is displayed when you click the Assign Values icon in the Routing Rules section.