<?php $client = SoapClient("some.wsdl", array('trace' => 1));$result = $client->SomeFunction(); echo "REQUEST:\n" . $client->__getLastRequest() . "\n";?>