Problem Overview
We are using Celigo JavaScript API / API Builder to create an API endpoint that receives an XML request from Postman and forwards the payload to a Celigo Webhook Listener to trigger an integration flow.
We noticed a major difference in behavior depending on payload conversion:
-
XML --> JSON Conversion: When our Celigo JavaScript API script receives the XML payload, converts it to a JSON object (or JSON string), and posts it to the Celigo Webhook Listener endpoint, the flow triggers successfully.
-
Raw XML directly: When our Celigo JavaScript API script attempts to pass the raw XML payload directly to the Celigo Webhook Listener (without converting it to JSON), the flow fails to trigger.
Goal
We want to send an XML payload in Postman, process it through our Celigo JavaScript API, and forward the raw XML string directly to the Celigo Webhook Listener while ensuring the listener successfully parses/accepts the raw XML and triggers the target flow.
