Skip to content

Instantly share code, notes, and snippets.

@matteocrippa
Created October 1, 2015 14:48
Show Gist options
  • Save matteocrippa/fe892a414469e2ad905d to your computer and use it in GitHub Desktop.
Save matteocrippa/fe892a414469e2ad905d to your computer and use it in GitHub Desktop.
SoapClient debug XML request and response
class SoapClientDebug extends SoapClient
{
public function __doRequest($request, $location, $action, $version, $one_way = NULL)
{
echo $request;
$resp = parent::__doRequest($request, $location, $action, $version);
echo $resp;
return $resp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment