How do I see the actual XML generated by PHP SOAP Client Class?

To see the actual XML generated by the PHP SOAP Client class, you can use the __getLastRequest() method. This method returns the last SOAP request sent by the client in XML format.

Here is an example:

<?php

$client = new SoapClient('some.wsdl');
$client->someMethod();
echo $client->__getLastRequest();

This will output the XML of the last SOAP request sent by the client.