title: How to "convert" a php soap code to xml?
body: <p>I have this code:</p>
  
  <pre><code>$soapClient = new SoapClient("https://soapserver.example.com/blahblah.asmx?wsdl");
  
  // Prepare SoapHeader parameters
  $sh_param = array(
                  'Username'    =&gt;    'username',
                  'Password'    =&gt;    'password');
  $headers = new SoapHeader('http://soapserver.example.com/webservices', 'UserCredentials', $sh_param);
  </code></pre>
  
  <p>How can see the xml code of $headers?</p>
  
  <p>Well, if maybe you don't understand me check <a href="https://stackoverflow.com/questions/3105577/simple-php-soapclient-example-for-paypal-needed">this question</a> out. As you can see the person who asks show a "soap code" and then shows the corresponding xml. That what I want, gets the corresponding xml code.</p>
  
  <p>Regards</p>
  
  <p>Javi</p>