OutputMap.jws Sample

A web service illustrating a simple return-XML XQuery map.

The method in this web service uses a simple XQuery map to ensure that the outgoing message carrying its return value conforms to a particular schema. The elements that make up the map's template (elements such as ns1:EMPLOYEE) match those defined by the schema associated with this map. XQuery expressions (such a $input/ns0:HelloResult/ns0:fname) select values from the default XML generated by WebLogic Workhop from the method's Java signature. At runtime, WebLogic Server runtime components execute the XQuery expressions against the default XML, then insert the resulting values into the template formed by the map.

Concepts Demonstrated by this Sample

Location of Sample Files

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\OutputMap.jws

To Run the Sample

Related Topics

Introduction to XQuery Maps

How Do I: Add or Edit an XQuery Map with the XQuery Mapper Dialog?