N8n SOAP API Node

I’m trying to create a connection with a SOAP API to capture some data. Can someone with more knowledge of how to do this within N8n help me?

Below is the body of my request

<soapenv:Envelope >
soapenv:Header/
soapenv:Body
tem:GrantPasswordAccessToken

tem:username[secret]</tem:username>

tem:password[secret]</tem:password>
</tem:GrantPasswordAccessToken>
</soapenv:Body>
</soapenv:Envelope>

No matter how much I change the request configuration it always comes out as a json, like below

{ "body": all body content here } }

For Soap you need to build the xml string and then send that as a post request body.
Easiest is to try by hardcoding in http request node first and then if it works build the body in previous nodes and pass it on to the http node.
If you struggle with that it helps to see the http node and how u set it up.

1 Like

Hi @BramKn Thank you for your anwer, i’m using a fixed body content like below

<soapenv:Envelope >
soapenv:Header/
soapenv:Body
tem:GrantPasswordAccessToken

tem:username[secret]</tem:username>

tem:password[secret]</tem:password>
</tem:GrantPasswordAccessToken>
</soapenv:Body>
</soapenv:Envelope>

I need do the other type of xml string?

Can you give me a example? i’m realy rookie in N8n HTTP Request.

In SoapUI and in Postman this call works perfectly

1 Like

easiest is to copy what is in postman, as it should show you the headers and stuff as well.

I do not have a direct example for you.

1 Like

Hi BramKn, i attach below a print from my last try…

I used all the information from Postman and SoapUI to do the request, but it dont work

1 Like

It says unauthorized, so something wrong with that.
Cannot say from here what the issue exactly would be other then the credentials not being right.

1 Like

I Really dont know what is wrong with that, i just use the same request what works in soapui and postman… sad

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.