Send parsed XML from JMS queue via REST

Recipe ToolsData ParserMarketingDeveloper ToolAPI Integration

What it does

When a new message arrives in the JMS queue, this automation parses the XML document and maps it to a common data model. The transformed data is then sent to a REST endpoint so downstream systems receive it in the expected format.

Who it's for

Engineering teams who need to process JMS messages and forward parsed data to REST APIs without manual transformation.

How teams use this

Process order shipments from queue

Parse incoming shipment XML messages from the JMS queue, map them to the TFG_Consignment model, and send to a REST API that updates the order management system. The team no longer manually transforms messages.

Route consignment data to multiple endpoints

Add a second REST endpoint to this automation so the mapped TFG_Consignment data reaches both the primary system and a backup service. Both receive the same transformed message without duplication.

Filter messages by type before sending

Include conditional logic to check a field in the parsed XML and only send messages to the REST endpoint if they match specific criteria. Shipments, returns, and adjustments can be routed separately based on their type.

How it works

  1. Monitor the JMS queue. A new message arrives in the JMS queue in real-time, and this automation begins processing that message immediately.
  2. Extract and parse XML. The Xml Parser extracts and parses the XML content from the JMS message so its data becomes accessible for the next step.
  3. Map to common data model. Transform the parsed XML into the TFG_Consignment common data model so all fields align with downstream system requirements.
  4. Send data via REST endpoint. Post the mapped data to the REST endpoint so the receiving system gets the message in its expected format.