XMLRPC - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: XMLRPC (/showthread.php?tid=9142) |
XMLRPC - El Forum - 06-13-2008 [eluser]Jamie Rumbelow[/eluser] Having a little trouble with the XML-RPCS, this is my server class: Code: $config['functions']["getLatestPost"] = array("function"=>"News.getLatestPost"); And my request: Code: ... My Response, when I die(print_r($this->methods)); Code: ---DATA--- I'm getting a "Method not found" error when I don't "die" Could somebody give me some help? XMLRPC - El Forum - 06-13-2008 [eluser]gtech[/eluser] what does your news controller look like? XMLRPC - El Forum - 06-13-2008 [eluser]Jamie Rumbelow[/eluser] Hey, here is my news controller: Code: class News extends Controller { XMLRPC - El Forum - 06-13-2008 [eluser]gtech[/eluser] how odd I get the same error, I will take a look. XMLRPC - El Forum - 06-13-2008 [eluser]Jamie Rumbelow[/eluser] Cheers. XMLRPC - El Forum - 06-13-2008 [eluser]gtech[/eluser] If you move the getLatestPost function to the same controller as the Server it works, if you move it to an external controller it fails.. humm the plot thickens, I need to check if we are supposed to be able to call across controllers when using xmlrpc. (I thought you could) XMLRPC - El Forum - 06-13-2008 [eluser]gtech[/eluser] Well it looks like you cannot call external controllers. It fails on line 270 of the xmlrpcs.php code, as its trying to use is_callable on a controller/method that has not been loaded in the request, and so it fails. I am unsure if this is a bug or not. If you include news.php at the top of your server you will get a different error, if you rename the function you will see it goes back to the method not found error, so it suggests the the XMLRPC does not even attempt to source in the external controller. Also if you look at line 325 of xmlrpcs there is commented out code which attempts to call an external controller but has obviously been commented out as it did not work, however the code will never get this far as it fails gracefully on line 270. XMLRPC - El Forum - 06-13-2008 [eluser]gtech[/eluser] I have started a bug thread: [url="http://ellislab.com/forums/viewthread/82321/"]http://ellislab.com/forums/viewthread/82321/[/url] please feel free to add to it. |