title: why is getLastRequest not returning anything?
body: <p>I am trying to get the XML request:</p>
  
  <pre><code>$cgProxy = new SoapClient($WSDL_URL,array('trace' =&gt; 1));
  
  try {
          $result = $cgProxy-&gt;OrderCreate($cgOrder);
  
  } catch (SoapFault $exc) {
          var_dump($exc);
          echo "Request:\n" . $cgProxy-&gt;__getLastRequest(), "\n";
          echo "Response:\n" . $cgProxy-&gt;__getLastResponse() . "\n";
  }
  </code></pre>
  
  <p>With this I get the soap server error from the $exc dump. But the getLastRequest does not seem to be returning anything. Any thoughts?</p>
  
  <p>I have also tried with htmlspecialchars() and htmlentities() without success . . .</p>