title: how to send SOAP request in curl
body: <p>I am a Beginner of soap, How do i send soap request? i searched in google and tried different methods but sadly it didn't worked for me.</p>
  
  <p>i really appreciated your help.</p>
  
  <p>here's the sample request that i should send:</p>
  
  <pre><code>POST /Universal/WebService.asmx HTTP/1.1
  Host: www.sample.com
  Content-Type: text/xml;charset="utf-8"
  Content-Length: length
  SOAPAction: https://www.sample.com/Universal/WebService.asmx/Request
  
  &lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://wwww.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soap:Body&gt;
  &lt;Request xmlns="https://www.sample.com/Universal/WebService.asmx"&gt;
  &lt;ID&gt;CPHK01&lt;/ID&gt;
  &lt;UID&gt;TEST&lt;/UID&gt;
  &lt;PWD&gt;TEST&lt;/PWD&gt;
  &lt;target_mpn&gt;09183530925&lt;/target_mpn&gt;
  &lt;amount&gt;115&lt;/amount&gt;
  &lt;ref_no&gt;20060830143030112&lt;/ref_no&gt;
  &lt;source_mpn&gt;67720014&lt;/source_mpn&gt;
  &lt;/Request&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>here's the response:</p>
  
  <pre><code> HTTP/1.1 200 OK
   Content-Type: text/xml; charset=utf-8
   Content-Length: length
  
   &lt;?xml version = "1.0" encoding="utf-8"?&gt;
   &lt;soap:Envelope xmlns:xsi="http://wwww.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
   &lt;soap:Body&gt;
   &lt;RequestResponse xmlns="https://www.sample.com/Universal/WebService.asmx"&gt;
   &lt;RequestResult&gt;
   &lt;Ref_no&gt;20060830143030112&lt;/Ref_no&gt;
   &lt;StatusCode&gt;101&lt;/StatusCode&gt;
   &lt;/RequestResult&gt;
   &lt;/RequestResponse&gt;
   &lt;/soap:Body&gt;
   &lt;/soap:Envelope&gt;
  </code></pre>