title: How do I see the actual XML generated by PHP SOAP Client Class?
body: <p>Consider this example SOAP Client script:</p>
  
  <pre><code>$SOAP = new SoapClient($WDSL); // Create a SOAP Client from a WSDL
  
  // Build an array of data to send in the request.
  $Data = array('Something'=&gt;'Some String','SomeNumber'=&gt;22); 
  
  $Response = $SOAP-&gt;DoRemoteFunction($Data); // Send the request.
  </code></pre>
  
  <p>On the last line, PHP takes the arguments from the array you specified, and, using the WSDL, builds the XML request to send, then sends it.</p>
  
  <p>How can I get PHP to show me the actual XML it's built?</p>
  
  <p>I'm troubleshooting an application and need to see the actual XML of the request.</p>