When creating a simple webhook and calling it using curl, the webhook returns an error about “application/x-www-form-urlencoded”.
This is resolved by setting the correct Content-Type header to either application/json or application/xml as configured in the Connector.
Follow-up question (am not able to update the title of this post…):
Can the webhook return to the requestor immediatly with a 200 upon creating the Output message, so that the requester doesnt have to wait for the full flow behind the wehbook to complete?
The Webhook connector only allows users to POST only the XML/JSON payloads to the Webhook endpoint.
Webhook connectors enable data to enter the CData Arc flow via HTTP POSTs and PUTs. Each Webhook connector exposes an endpoint in the application where external clients can send XML and JSON payloads. These payloads are written to an output file. Once you see the output message in the connector, then the Webhook connector will send an automatic response back to your partner.
This website stores cookies on your computer. These cookies are used to collect information about how you interact with our website and allow us to remember you. We use this information in order to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media.
Review section III of our Privacy Policy for more information on cookies.
To opt out of “sale” or “sharing” of non-cookie data, visit our Privacy Rights Request Form.