3

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?

2

1 Answer 1

7

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")
Sign up to request clarification or add additional context in comments.

2 Comments

+1 because it's a good answer, but FFR, it's good form to point out if it's your gem you're linking to
This gem is great, it was working great until yesterday, today I'm getting a Wrong type NilClass. Not allowed! error. any ideas?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.