XML Body in API Query component fails with SAXParseException: Content is not allowed in prolog

I'm setting up a custom API Query and the POST endpoint requires an XML body.

When I run this in Postman it works fine, but translating the same request to Matillion API Query component fails with this error:

 

SAXParseException: Content is not allowed in prolog.

 

I've tried changing the XML (URL encoding) but no luck. Below is the response.

 

 

Any suggestions?

 

Cheers,

Steve

In this case, I was able to copy the python script from postman into a python component. That has worked to return the data. I wish I could figure out the api query though, it's a little less complicated to deal with the response that way.