[Helma-user] implementing metaweblogapi using "new-style" xmlrpc
Michael Platzer
michael.platzer at knallgrau.at
Thu Sep 28 16:35:38 CEST 2006
Stefan Rinner schrieb:
> So, is it not possible to implement something like the metaWeblogAPI
> with a single endpoint and several methods in the new-style?
> Currently I added a switch statement to main_action_xmlrpc to route
> my calls, but this isn't that nice.
>
it isn't nice, but it is working. we have got the following action
defined in Root:
function xmlrpc_action_xmlrpc(method, param0, param1, param2, param3,
param4, param5, param6, param7, param8, param9) {
var mountpoint = method.split('.')[0];
var functionName = method.split('.')[1];
if (root[mountpoint][functionName + "_xmlrpc"]) {
return root[mountpoint][functionName + "_xmlrpc"](param0, param1,
param2, param3, param4, param5, param6, param7, param8, param9);
}
}
michi
More information about the Helma-user
mailing list