pfx-xml:marshal

Marshals variable sources into XML.

Properties

No properties.

Examples

The component takes a value from the body

Example 1 – JSON to XML

<route> <from uri="timer:testSFDC?repeatCount=1"/> <setBody><constant>"{"prop1":10,"prop2":15}"</constant></setBody> <to uri="pfx-xml:marshal"/> </route>

Result:

<root> <prop1>10</prop1> <prop2>15</prop2> </root>

 

Example 2 – Internal object to XML

<route> <from uri="timer:testSFDC?repeatCount=1"/> <setBody><groovy>[prop1:10, prop2:15]</groovy></setBody> <to uri="pfx-xml:marshal"/> </route>

Result:

<root> <prop1>10</prop1> <prop2>15</prop2> </root>

 

 

IntegrationManager version 5.8.0