title: SOAP request in PHP with CURL
body: <p>Since the SOAP manual on php.net is not very noob friendly and I could not find any good examples I will post my question here.</p>
  
  <p>How can I create PHP SOAP request to look like this?</p>
  
  <pre><code>POST /MySERVER/myWSDLservice.asmx HTTP/1.1
  Host: connection.mywebsite.com
  Content-Type: text/xml; charset=utf-8
  Content-Length: length
  SOAPAction: "http://connection.mywebsite.com/MySERVER/GetCarType"
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.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;GetCarType xmlns="http://connection.mywebsite.com/MySERVER/"&gt;
      &lt;IDNumber&gt;string&lt;/IDNumber&gt;
    &lt;/GetCarType&gt;
   &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Please note:</p>
  
  <ul>
  <li>there is user/pass auth </li>
  <li>SSL connection</li>
  </ul>
  
  <p>Any suggestion / links / example much appreciated. </p>