title: how to call web services using soap in php
body: <pre><code>The following is a sample SOAP 1.1 request and response.:
  POST /atservices/1.5/atws.asmx HTTP/1.1
  Host: webservices2.autotask.net
  Content-Type: text/xml; charset=utf-8
  Content-Length: length
  SOAPAction: "http://autotask.net/ATWS/v1_5/getZoneInfo"
  
  &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;getZoneInfo xmlns="http://autotask.net/ATWS/v1_5/"&gt;
    &lt;UserName&gt;string&lt;/UserName&gt;
    &lt;/getZoneInfo&gt;
   &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>we want to call web services of autotask using soap  in php.can we get example for it
     how we should call soap client.</p>
  
  <pre><code>Its output should be like this :
  </code></pre>
  
  <p>HTTP/1.1 200 OK
     Content-Type: text/xml; charset=utf-8
      Content-Length: length</p>
  
  <pre><code>&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;getZoneInfoResponse xmlns="http://autotask.net/ATWS/v1_5/"&gt;
    &lt;getZoneInfoResult&gt;
      &lt;URL&gt;string&lt;/URL&gt;
      &lt;ErrorCode&gt;int&lt;/ErrorCode&gt;
      &lt;DataBaseType&gt;string&lt;/DataBaseType&gt;
      &lt;CI&gt;int&lt;/CI&gt;
    &lt;/getZoneInfoResult&gt;
   &lt;/getZoneInfoResponse&gt;
   &lt;/soap:Body&gt;
   &lt;/soap:Envelope&gt;
  </code></pre>