title: Make SOAP request using PHP
body: <p>I've done plenty of REST integrations, but have zero experience with SOAP. Here's a sample SOAP v1.1 request... how do I execute this in PHP? Furthermore, we are given an option of using SOAP v1.1 or v1.2 - which should I use?</p>
  
  <pre><code>POST /l/webservice/employee.asmx HTTP/1.1
  Host: webservices.domain.com
  Content-Type: text/xml; charset=utf-8
  Content-Length: length
  SOAPAction: "http://www.domain.com/l/webservices/ExportEmployeeInformation"
  
  &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;ExportEmployeeInformation xmlns="http://www.domain.com/l/webservices/"&gt;
        &lt;sTicket&gt;string&lt;/sTicket&gt;
      &lt;/ExportEmployeeInformation&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Here's the SOAP v1.2 sample request:</p>
  
  <pre><code>POST /l/webservice/employee.asmx HTTP/1.1
  Host: webservices.domain.com
  Content-Type: application/soap+xml; charset=utf-8
  Content-Length: length
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"&gt;
    &lt;soap12:Body&gt;
      &lt;ExportEmployeeInformation xmlns="http://www.domain.com/l/webservices/"&gt;
        &lt;sTicket&gt;string&lt;/sTicket&gt;
      &lt;/ExportEmployeeInformation&gt;
    &lt;/soap12:Body&gt;
  &lt;/soap12:Envelope&gt;
  </code></pre>
  
  <p>Thanks!</p>