Making a SOAP request via HTTP Request node

Limited experience with SOAP and n8n.

I have a SOAP request I want to use in my workflow. I have used SoapUI to successfully invoke the request against a published endpoint but I can’t get the same to happen when I use the request in an HTTP Request node.

The SOAP message looks like this

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
   <SOAP-ENV:Header>
      <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <UsernameToken>
            <Username>TG</Username>
            <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">123</Password>
         </UsernameToken>
      </Security>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
      <Book xmlns="http://dbpro.co.uk/dbpro">
         <Booking xsi:type="s01:Booking" xmlns:s01="http://dbpro.co.uk/dbpro">
            <ActionType xsi:type="s:string">Create</ActionType>
            <Customer xsi:type="s:string">207</Customer>
            <CustomerContact xsi:type="s:string">JohnC</CustomerContact>
            <OrderId xsi:type="s:string">999</OrderId>
            <CustomerReference xsi:type="s:string">TESTAUTO005</CustomerReference>
         </Booking>
      </Book>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I’ve tried to POST with the above in the request Body with Content Type set to Raw.
I’ve tried putting the Username and Password in as data in the Header.

The call consistently fails with “ERROR #5916: Illegal Web Request , ErrorCode: 5916”

Hi @FRLJohn

Try a tool like postman to send the POST request.
And then transfer the headers and such to n8n when it works in postman.
Sometimes you need to set some specific content types and such for it to work. A a tool like postman will help you iron those out.
Can also be done by grabbing this info from SOAPUI but can sometimes be tricky as it does not always show very clearly what is going on like postman does do.