Created
February 15, 2011 20:53
-
-
Save Krule/828221 to your computer and use it in GitHub Desktop.
PHP Class for debugging SOAP requests
This file contains 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=0, $one_way=0) { | |
echo "<pre>" . preg_replace('/></', '><br><', htmlentities($request)) . "</pre>"; | |
return parent::__doRequest($request, $location, $action, $version); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment