I'm working on integrating a third-party application with Microsoft Dynamics 365 Business Central.
The third-party system can only send data as an HTTP POST request with an XML payload to a webhook URL. My goal is to receive this XML in Business Central, parse it, and create or update records based on the data.
I have a few questions:
- Is it possible to create a custom webhook endpoint directly in Business Central that can accept raw XML payloads?
- If not, is exposing a SOAP Web Service (Codeunit) a suitable approach for receiving XML from the third-party system?
- Has anyone implemented a similar XML integration without using middleware such as Azure Functions or Logic Apps?
- If SOAP is the recommended option, could you share an example of how to:
- Publish the Codeunit as a SOAP Web Service
- Receive the XML request
- Parse the XML in AL
Any guidance, best practices, or sample implementations would be greatly appreciated.
Thank you!