title: How to send a SOAP request in javascript, like in SoapUI
body: <p>I am currently working on a NodeJS project where I need to use some soap/xml/wsdl. The problem is that can't figure out how any of these works, so forgive my ignorance. Here is what I need:</p>
  
  <p>I have this WSDL site that I need to get some answers from. I have figured out how to do this in SoapUI, but I have no idea how to do it in Javascript. The request that I am sending in soapUI looks like this:</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:uni="https://uni-login.dk"&gt;
     &lt;soap:Header/&gt;
     &lt;soap:Body&gt;
        &lt;uni:hentDataAftaler&gt;
           &lt;uni:wsBrugerid&gt;?&lt;/uni:wsBrugerid&gt;
           &lt;uni:wsPassword&gt;?&lt;/uni:wsPassword&gt;
        &lt;/uni:hentDataAftaler&gt;
     &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>I also have the wsdl-link:
  <a href="https://wsiautor.uni-login.dk/wsiautor-v4/ws?WSDL" rel="noreferrer">https://wsiautor.uni-login.dk/wsiautor-v4/ws?WSDL</a></p>
  
  <p>I have also tried to use some npm-packages in nodeJS (SOAP, Strong-SOAP and Easy-SOAP), but I can't make these work either.</p>
  
  <p>I hope you I have some suggestions and tell me if you need any more information to answer my question :)</p>