Created
October 1, 2015 14:48
-
-
Save matteocrippa/fe892a414469e2ad905d to your computer and use it in GitHub Desktop.
SoapClient debug XML request and response
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
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