filoquin / json-xml-rpc

Automatically exported from code.google.com/p/json-xml-rpc
0 stars 0 forks source link

addMethod does not support object enclosed methods or shows wrong method name while "system.describe" #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I wrote a code like

<?php

$server = RPCServer::getInstance();
function rpc_check_call($arguments){
    return array("working");
}

/*
 * note that the function name is rpc_check_call in php server
 * and I want to show the function as rpc.check_call in client 
 */
$server->addMethod("rpc_check_call", "rpc.check_call");

?>

What is the expected output? What do you see instead?
I expect that I shall find a procedure like rpc.check_call().

But when I call system.describe() I get procedure name rpc_check_call.
And when I call rpc_check_call() it says that no function like that.
But when I call rpc.check_call() then it works.

What version of the product are you using? On what operating system?

The following lines describe PHP version.
PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58) 

And I have checked the json response too . I think there is no issue
in the javascript client(as system.describe is working). 

-- Thanks
Kamanashis Roy

Original issue reported on code.google.com by kamanash...@gmail.com on 2 Jan 2008 at 7:50

GoogleCodeExporter commented 8 years ago
system.listMethods was showing the correct method names, but system.describe 
was not
due to an oversight.

Original comment by WestonRuter on 6 Jan 2008 at 7:28