Obtaining Configuration Properties Using a Document-Centric Query

Using iWay Functional Language (iFL), the internal server provides functions that can address the parsed form of a payload. These functions require a document to be present and in process. This differs from other iFL functions such as _sreg() or _property(), which can access information without a document being present or in process. For XML, the standard Xpath language is provided, while for JSON, JsonPath and JsonPointer are offered.

This section describes the use of XPath to route the XML document. However for JSON documents, the _jsonpath() or _jsonptr() functions can be used. For more information on these functions, see the iWay Functional Language Reference Guide.

Example: Using XPath to Dynamically Route Output

The <email> node in the following sample code is referenced by iSM to route a reply-to message:

<customer_profile>
<name>Joseph Bloggs</name>
<email>Joe_Smith@ibi.com</email>
<vehicles>
   <car>JAGUAR</car>
 </vehicles>
</customer_profile>

The XPath notation _xpath(/customer_profile/email) shown in the following image indicates the emitter information derived from the file.