Demonstrates use of XQuery maps in combination with ECMAScript to do special formatting and processing when tranforming Java objects to XML.
You can call script in a JSX file from an XQuery map to incorporate logic that may not be possible in the XQuery itself. The method in this web service returns the XML response of this method as translated by a JSX file called from an XQuery map. The JSX file contains ECMAScript that formats into another shape the XML that would have otherwise been generated from the Person object this method returns.
This sample is located in the xqueryMap folder of the SamplesApp WebLogic Workshop project. In the file system the location is:
BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\xqueryMap\OutputScriptMap.jws
To Run the Sample
BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh
Handling XML with ECMAScript Extensions
How Do I: Add or Edit an XQuery Map with the XQuery Mapper Dialog?