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 a 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 $BEAHOME/user_projects/domains/soainfra/autodeploy/soa-infra/APP-INF/lib 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 20-28.

    Figure 20-28 Project .mplan file – Modified to Use User-Defined Extension Functions

    Description of Figure 20-28 follows
    Description of "Figure 20-28 Project .mplan file – Modified to Use User-Defined Extension Functions"
  8. Invoke the test page with a suitable payload.