title: PHP SOAP print the xml
body: <p>how can i print the xml of a soap call before calling it?</p>
  
  <p>from what iv seen you need to alter the dorequest function, but upon doing so u get "SoapClient::__doRequest() returned non string value"</p>
  
  <p>here is the code</p>
  
  <pre><code>public function __doRequest($request, $location, $action, $version, $one_way=0) {
  var_dump( $request);
  }
  </code></pre>