I have to use Acoustic’s XML api in order to acquire some data. But I can’t manage to put the xml in the body parameter. Does anyone has an idea on how to do this?
XML example:
<Envelope><Body><RESULT><SUCCESS>false</SUCCESS></RESULT><Fault><Request/><FaultCode/><FaultString>Invalid XML Request</FaultString><detail><error><errorid>51</errorid><module/><class>SP.API</class><method/></error></detail></Fault></Body></Envelope>
Have you tried enabling the JSON/RAW Parameters option of your HTTP Request node?
This will allow you to provide the entire request body instead of just key-value pairs. You can also configure the authentication header as credentials in n8n, this way they wouldn’t be part of your workflow if you share it with someone.
I’ve tried using the json/raw parameters, but then I don’t see how I can pass the Authorization: Bearer {{Bearertoken}} in the Headers?
Can I also configure the authentication header based on query parameters only? In a previous node, I do a post to the token endpoint with all the credentials in the query. So I don’t select a “way to authenticate” in my node.