title: How to correctly use built-in XMLRPC in Ruby?
body: <p>I'm trying to use built-in XMLRPC in Ruby 1.9. Unfortunately, XMLRPC is not documented on ruby-docs.org, so i have tried to build a test code based on examples found by google:</p>
  
  <pre><code># Server.rb
  require "xmlrpc/server"
  server = XMLRPC::Server.new( 1234 )
  server.add_handler( "test" ) { |msg| return "responce for #{msg}" }
  server.serve()
  
  # Client.rb
  
  require "xmlrpc/client"
  server = XMLRPC::Client.new( "localhost", "/", 1234 )
  server.call( "test", 42 ) == "responce for 42"
  </code></pre>
  
  <p>Unfortunately, this is not working on both Windows and OSX. <code>Server.rb</code> fails with cryptic error:</p>
  
  <pre><code>C:/Ruby193/lib/ruby/1.9.1/xmlrpc/client.rb:414:in `call': Uncaught exception unexpected return in method test (XMLRPC::FaultException)
          from client.rb:6:in `&lt;main&gt;'
  </code></pre>
  
  <p>Maybe anyone knows what is my error?</p>