I need to implement a ruby on rails project using XML-RPC. I have no idea where to get started but I've used ruby on rails before (just never with XML-RPC). Can someone help me out on get started with this?
-
Did you Google? google.com/search?q=xml-rpc+rubyDmytrii Nagirniak– Dmytrii Nagirniak2010-05-11 10:51:12 +00:00Commented May 11, 2010 at 10:51
-
There's some related information here: stackoverflow.com/questions/5541768/… (not a dupe, since that question is about serving normal rails and xmlrpc at the same time, but this one is about just xmlrpc)kdt– kdt2011-04-08 09:24:01 +00:00Commented Apr 8, 2011 at 9:24
Add a comment
|
1 Answer
If you want to use rails project like a server try this gem: rails-xmlrpc
If you want your project to connect to xmlrpc server, here is an example:
require 'xmlrpc/client'
server = XMLRPC::Client.new2("http://localhost:3000/api/xmlrpc")
server.call("Namespace.method_name")
2 Comments
Varun
This gem is great, it was working great until yesterday, today I'm getting a Wrong type NilClass. Not allowed! error. any ideas?