X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=blobdiff_plain;f=debugger%2Faction.php;h=3b0144451d9e8a4f19837627cff1df5b3ed8a92e;hp=f77c8761f2783ad3bf96df906e35fc7f5e24dff9;hb=b76d21c030bcd510dce8d7e245581842c62ab6b5;hpb=c8a412d48733f671db6ba149659b816c2e14fd3a
diff --git a/debugger/action.php b/debugger/action.php
index f77c876..3b01444 100644
--- a/debugger/action.php
+++ b/debugger/action.php
@@ -8,6 +8,9 @@
* @todo use ob_start to catch debug info and echo it AFTER method call results?
* @todo be smarter in creating client stub for proxy/auth cases: only set appropriate property of client obj
**/
+
+header('Content-Type: text/html; charset=utf-8');
+
?>
@@ -104,11 +107,11 @@ if ($action) {
if (!class_exists('jsonrpc_client')) {
die('Error: to debug the jsonrpc protocol the jsonrpc.inc file is needed');
}
- $clientClass = 'PhpJsRpc\client';
- $requestClass = 'PhpJsRpc\request';
+ $clientClass = 'PhpJsRpc\Client';
+ $requestClass = 'PhpJsRpc\Request';
$protoName = 'JSONRPC';
} else {
- $clientClass = 'PhpXmlRpc\client';
+ $clientClass = 'PhpXmlRpc\Client';
$requestClass = 'PhpXmlRpc\Request';
$protoName = 'XMLRPC';
}
@@ -226,7 +229,7 @@ if ($action) {
}
}
} else {
- $msg[0]->payload = $msg[0]->xml_header() .
+ $msg[0]->payload = $msg[0]->xml_header($inputcharset) .
'
Fault code: [" . htmlspecialchars($response->faultCode()) . - "] Reason: '" . htmlspecialchars($response->faultString()) . "'
\n"; + echo "Fault code: [" . htmlspecialchars($response->faultCode(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . + "] Reason: '" . htmlspecialchars($response->faultString(), ENT_COMPAT, \PhpXmlRpc\PhpXmlRpc::$xmlrpc_internalencoding) . "'
\n"; echo(strftime("%d/%b/%Y:%H:%M:%S\n")); } else { // call succeeded: parse results - //echo 'Method | Description |
---|---|
Method ($max) | Description |
" . htmlspecialchars($rec->scalarval()) . " |