title: SOAP Request using nodejs
body: <p>Hi can anyone help me out.</p>
  
  <p>how to request soap web service and get the xml response. 
  Senario:
  Using soap ui im sending  wsdl url with username, password authentication and also i will send soap xml data and i gets reponse. 
  Same thing how to achive using nodejs or sails.</p>
  
  <blockquote>
    <blockquote>
      <p>In SoapUi My soap xml request is like</p>
    </blockquote>
  </blockquote>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tier="http://HCSLN9191-GMS.gois.ito.unisys.com/Tier1ICLStd:Tier1ICLMB_StdDispatch"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;tier:UnisysMB_Dispatch&gt;
           &lt;PayLoad&gt;SomeData&lt;/PayLoad&gt;
        &lt;/tier:UnisysMB_Dispatch&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <blockquote>
    <blockquote>
      <p>And My Soap Authentication is like</p>
    </blockquote>
  </blockquote>
  
  <p>$UserName : xyz &amp; password:xyz</p>
  
  <blockquote>
    <blockquote>
      <p>My wsdl url is
      <a href="http://esbuatt1wm.ito.xyz.com:7001/ws/Tier1ICLStd_New:Tier1ICLMB_StdDispatch_New?WSDL" rel="nofollow noreferrer">http://esbuatt1wm.ito.xyz.com:7001/ws/Tier1ICLStd_New:Tier1ICLMB_StdDispatch_New?WSDL</a></p>
    </blockquote>
  </blockquote>
  
  <p>After provides this information i am getting xml response like</p>
  
  <pre><code>&lt;ser-root:CommAck xmlns:ser-root="http://HCSLN1181-GMS.gois.ito.unisys.com/Tier1ICLStd_New:Tier1ICLMB_StdDispatch_New" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;CommAck&gt;
  &lt;MB_UUID&gt;cbbb683d-e9b1-4d12-b0db-8006134aad27&lt;/MB_UUID&gt;
  &lt;ServiceID&gt;McDonalds&lt;/ServiceID&gt;
  &lt;Acknowledge&gt;0&lt;/Acknowledge&gt;
  &lt;Comment&gt;Payload does not contain the pattermatch xpath.&lt;/Comment&gt;
  &lt;/CommAck&gt;
  &lt;/ser-root:CommAck&gt;
  </code></pre>
  
  <p><strong>My Question is How to get that above xml response using node easy soap, 
  i am new to soap concept. can anyboud help me out to give me the proper snippet for the above senario.....</strong></p>