X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fxmlrpcs.inc;h=aa6a24229d446c2f42a8162224d3ba960150d0b1;hb=4e8ba3e1d1a411856c639ebcf93a45fe065cd794;hp=7daf1c4427dd4922164d8bb8bbcca0b5e891ea51;hpb=64b37dfbd32a7858e729e03eb276a2eaa0f19ccd;p=plcapi.git diff --git a/lib/xmlrpcs.inc b/lib/xmlrpcs.inc index 7daf1c4..aa6a242 100644 --- a/lib/xmlrpcs.inc +++ b/lib/xmlrpcs.inc @@ -46,6 +46,15 @@ include_once(__DIR__.'/../src/Server.php'); class xmlrpc_server extends PhpXmlRpc\Server { + /** + * A debugging routine: just echoes back the input packet as a string value + * @deprecated + */ + public function echoInput() + { + $r = new Response(new PhpXmlRpc\Value("'Aha said I: '" . file_get_contents('php://input'), 'string')); + print $r->serialize(); + } } /* Expose as global functions the ones which are now class methods */ @@ -53,4 +62,4 @@ class xmlrpc_server extends PhpXmlRpc\Server function xmlrpc_debugmsg($m) { PhpXmlRpc\Server::xmlrpc_debugmsg($m); -} \ No newline at end of file +}