Database Reference
In-Depth Information
•
Namespace of the class (for example,
http://www.mycompany.com/
XSL/Transform/java/mycom-
pany.functions.xpath.myFunctions)
•
Namespace prefix (for example,
utl)
•
Fully
qualified
name
of
the
Java
class
(for
example,
com.mycompany.functions.xpath.myFunctions)
•
Name of the XPath function (for example,
validateSchematron)
•
Details on the parameters
3.
Edit the file
$MW_HOME/Oracle_SOA1/soa/modules/or-
acle.soa.ext_11.1.1/classes/META-INF/ext-soa-xpath-
functions-config.xml
.
4.
Add the namespace and prefix as highlighted here:
<soa-xpath-functions xmlns="http://xmlns.oracle.com/soa/config/xpath" xmlns:<prefix>="<namespace>">
5.
Add the following snippet to the bottom of the file, using values from step 1:
<function name="utl:validateSchematron">
<className>com.mycompany.functions.xpath.myFunction </className>
<return type="string"/>
<params>
<param name="formatString" type="string" minOccurs="0"/>
</params>
</function>
6.
Copy the custom JAR file (for example,
customXPathFunctions.jar)
to
$MW_HOME/user_projects/domains/[soa_domain]/lib
.
7.
Restart the SOA managed server.
Now, any composite deployed to the server and requiring the use of these cus-
tom XPath functions will have access to them at runtime.