Skip to main content

Hi,

 

Original question:

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?

Hi Sacha,

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.

Here is the Webhook connector documentation for your reference: CData Arc - Webhook Connector | Version 24.2.9039