Created
January 22, 2016 08:33
-
-
Save ladyjer/cd18a81f6f8071ccd7dd to your computer and use it in GitHub Desktop.
Inspect XML created by PHP SoapClient call before/without sending the request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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