Ruby On Rails - XML-RPC

I need to implement a ruby ​​on rails project using XML-RPC. I have no idea where to start, but before I used ruby ​​on rails (just never with XML-RPC). Can someone help me get started with this?

+3
source share
1 answer

If you want to use the rails project as a server, try this stone: rails-xmlrpc

If you want your project to connect to the xmlrpc server, here is an example:

  require 'xmlrpc/client'
  server = XMLRPC::Client.new2("http://localhost:3000/api/xmlrpc")
  server.call("Namespace.method_name")
+7
source

Source: https://habr.com/ru/post/1744648/


All Articles