How to receive and process XML data in a ThingWorx service (via external SAP API call)?
Hi everyone,
I’m working on a use case where our SAP team wants to send data to ThingWorx via an HTTP API call. They will post the data as XML, and ThingWorx should receive it in a service, parse it, and store the information in a DataTable or Dataset.
However, I’m not sure how to receive the XML payload properly inside a ThingWorx service. When SAP calls my service endpoint, I don’t see any way to directly access the raw XML content — it’s either not recognized or comes as an empty input parameter.
What’s the correct approach to handle this in ThingWorx?
Specifically:
How can I receive XML from an external system in a ThingWorx service?
Do I need to configure a specific Content-Type header (like application/xml)?
If anyone has done SAP → ThingWorx integration with XML payloads, I’d really appreciate an example or best-practice recommendation.
Thanks in advance!

