November 20, 2010

Deploying custom XPath to SOA Suite 11g

This post describes how to deploy a custom XPath function you may have written in Java to Oracle SOA Suite 11g.

1. Edit the following file:
2. Add both the following. Here, you are adding the namespace prefix and function declaration.
<soa-xpath-functions xmlns=""

  <function name="utl:getDateTimeWithMilliseconds">
    <return type="string"/>
      <param name="formatString" type="string"/>
3. Copy your following JAR (e.g., customDateFunction.jar) to:
4. In your code (e.g., transformation or assigns), the function may be called as followed:
You will have to use the same namespace prefix defined above:
The way we have defined and configured it above makes the function available to all SOA components, such as BPEL and Mediator. Refer to the Oracle documentation to find out how you can make the function specific to a particular component.

No comments:

Post a Comment