XML-RPC :: Method Introspection |
[eluser]PhxVyper[/eluser]
Hello, How do I perform method introspection on my XML-RPC application? I've tried https://mydomain/client.php?method=system.listMethods and I've also tried writing my own method that calls the listMethods method from the server and I just get errors like "The XML data receieved was either invalid or not in the correct form for XML-RPC. Turn on debugging to examine the XML data further." or other errors. Thx!
[eluser]gtech[/eluser]
I had a long look at this code and I don't think listMethods works [edit] See below post for solution
[eluser]gtech[/eluser]
OK got it working! you need to make the following changes to xmlrpcs.php (dont get confused with xmlrpc.php) Code: // line 85 Code: // line 262 Code: // line 315 Code: // line 343 Once you have made the changes you can call it as follows (see the xmlrpc documentation as it is copied from there apart from the listMethods bit): Code: class myxml extends Controller { [url="http://ellislab.com/forums/viewthread/65791/"](See BUG Thread)[/url] I have also included an svn patch for the fixes in the thread.
[eluser]PhxVyper[/eluser]
Thanks for the details. I'm now able to list methods. Here is the next issue. Code: function methodHelp($m) Notice the getparam method call? It doesn't exist! So, the other system methods for system.methodHelp, system.methodSignature, and multicall don't work.
[eluser]gtech[/eluser]
yes I tried calling the other system calls that require parameters. When I tried it the code keeled over when trying to parse each methods signature in the execute function. will take a look and see if its a simple fix when I get some time from my proper job, or it may be that im calling it incorrectly ![]()
[eluser]gtech[/eluser]
OK got methodhelp and method signature working (YOU ALSO NEED THE FIXES ABOVE) xmlrpc.php Code: .. xmlrpcs.php Code: .. enjoy, I spent a couple of head scratching hours doing this. I will post up my SVN PATCH on the bug report. [url="http://ellislab.com/forums/viewthread/65791/"](CLICK HERE)[/url] |
Welcome Guest, Not a member yet? Register Sign In |