Hi!
I'm trying to develop a XMLRPC client for Xoops. Now I'm testing the BloggerApi Interface.
I have studying the code on the xmlrpc.php file and the class/xml/rpc/* files.
In special the *tag.php file and the bloggerapi file.
I don't get any response to the blogger.getUserInfo message.
Please, correct my thoughs:
I think that this is the behaviour of the XmlRPC system of Xoops.
1) First xmlrpc.php file is called.
2) mainfile.php is called in RPC mode ( I think this will prevent from loading headers and so... )
3) parser and tag clases are loaded
4) we choose the xmlrpc API with the first part of "method". My client is using blogger.getUserInfo, so it's blogger.
Quote:
case 'blogger':
include_once XOOPS_ROOT_PATH.'/class/xml/rpc/bloggerapi.php';
$rpc_api = new BloggerApi($parser->getParam(), $response, $module);
As we can see in the code, bloggerapi.php class is loaded, and rpc_api is filled with the class to proccess the thing.
Previously, the $response variable has been initialized with a new XoopsXmlRpcResponse object.
Then, $rpc_api->$method() is called ( $method is extracted from Methods[] array, that should contain getUserInfo... I have seen that is correct, with a dump ).
Then the render is called, and besides headers, the result is printed.
My client make a dump of everything that xmlrpc prints ( xml or plain text, whatever... )
Well.. playing with "echo" I can see how the getUserInfo from bloggerapi.php is called. The xmlRpcStruct is filled, and datas are extracted correctly from Db.
But, render function seems to not be called ( neither RpcDocument, nor RcpResponse ).
And besides that, no "echo" could be seen after the call of $rpc_api->$method().
What's wrong?
Thx for hearing me.