Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Simple XML-RPC in Ruby (See related posts)

Example lifted from the standard library docs. Illustrative!

   1  
   2  #!c:\ruby\bin\ruby.exe
   3  require 'xmlrpc/client'
   4  require 'pp'
   5  
   6  server = XMLRPC::Client.new2("http://rpc.technorati.com/rpc/ping")
   7  result = server.call("weblogUpdates.ping", "Copenhagen.rb", "http://www.copenhagenrb.dk/")
   8  pp result

You need to create an account or log in to post comments to this site.


Click here to browse all 5827 code snippets

Related Posts