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

Payload

The Payload tag contains one or more payload properties. Each property should have a unique name and an XPath pointing to a valid location in the payload XML.
<Payload>
<Property name="prodName">
    <Xpath>/Product/Name/text()</XPath>
</Property>
    <Property name="price" type="double">
    <Xpath>/Product/Price/text()</XPath>
    </Property>
</Payload>
In the above example, the property prodName is an alias to the value of the XPath /Product/Name/text(), that is, it is the alias for the value of XML tag <Name> inside the tag <Product> in the message XML.
The default data-type for a property is java.lang.String. If a property’s data-type is other than java.lang.String, then the ’type’ attribute should have a proper java type value.
The mapping of various payload properties to the XML tag and data in an example XML message is shown in Figure 24.
Figure 24. NewProduct.XML file