|
From: Kevin <ke...@dr...> - 2006-10-16 06:00:39
|
Team,
XML-RPC and JSON-RPC support is in place. I added phpxmlrpc for the
server side and jsolait for the javascript client.
I added a temporary link to the top menu to demonstrate it working.
"Send a ping to web service".
To add more methods you just need edit the files in lib/api/.
* rpc_map.php defines the method signature.
* rpc_methods.php defines the method/function implementation.
The javascript generator is fairly limited. It doesn't like periods in
the names of rpc methods Also, it defaults to do synchronous method
calls. For event handling, I know this is not good. In order to do an
async json-rpc call, you have to pass a function as the last argument to
the method. It will automatically switch to async mode and use that
function argument as the callback for the response.
Cheers,
Kevin
|