title: PHP Soap Client __getLastRequest() empty
body: <p>I have to apologize, I realize there a ton of questions like this on Stack Overflow....maybe even overflowing with them... :)</p>
  
  <p>I am making a web call to a soap service using PHP's built in soap client.
  Per the wsdl it is expecting the item I am passing to be a string. There is no documentation rather then the wsdl and the company states its to be xml.
  So I hae built an object, and convert it to xml in php and they have confirmed the xml looks correct for what they are expecting.</p>
  
  <p>here is my method in my class</p>
  
  <pre><code>$options = array( 'trace' =&gt; 1, 'exceptions' =&gt; 1, "features" =&gt; SOAP_SINGLE_ELEMENT_ARRAYS);   
      $client = new SoapClient($this-&gt;submitUrl."?WSDL", $options);
      $client-&gt;InsertLeadInformation($xml);
  
      print_r($client-&gt;__getLastRequest());
  </code></pre>
  
  <p>i have echoed out the xml above the call and it looks correct but when i pass it __getLastRequest() the soap envelope is empty?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://xxxxxxxx.com/webservices2"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns1:InsertLeadInformation/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>anyone have any ideas? thank you in advance</p>