Skip to content

Instantly share code, notes, and snippets.

@ladyjer
Created January 22, 2016 08:33
Show Gist options
  • Save ladyjer/cd18a81f6f8071ccd7dd to your computer and use it in GitHub Desktop.
Save ladyjer/cd18a81f6f8071ccd7dd to your computer and use it in GitHub Desktop.
Inspect XML created by PHP SoapClient call before/without sending the request
<?php
class SoapClientDebug extends SoapClient
{
public function __doRequest($request, $location, $action, $version, $one_way = 0) {
// Add code to inspect/dissect/debug/adjust the XML given in $request here
// Uncomment the following line, if you actually want to do the request
// return parent::__doRequest($request, $location, $action, $version, $one_way);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment