Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Messaging workstep : Message descriptor : XML template
 

XML template

The Template tag within MessageDescriptor may contain an inline XML template of the payload. Typically, a template is a valid XML file with blank tags, that is, tags which contain no data. Wherever values are provided for XML tags, these are used as the default values at runtime. While defining a message template, the user can provide either the entire XML template inlined within the descriptor or an HTTP URL to the template. Two examples of ‘Template’ tag are shown below.
*A template example with a HTTP URL.
<Template location="http://po/product.xml"/>
*A template example with a inline content.
<Template encoding="base64">
    <Product>
    <Id/>
    <Name/>
    <Price/>
    </Product>
</Template>
The encoding attribute is required only for the inline template. Currently, BP Server supports the Base64 encoding only.
* XML instance