Revision: 4078
Updated Code
at October 21, 2007 19:10 by chrisaiv
Updated Code
#Example 1: Find a State in a Specific Sort Order #A. Import the XMLPRC Library (Thanx Michael Nuemann) require 'xmlrpc/client' #B. You have to define the web address that will run the RPC against server = XMLRPC::Client.new2('http://betty.userland.com/RPC2') puts server.call('examples.getStateName', 1) #Example 2: Find product information based on a UPC number #C. You have to define the web address that will run the RPC against server = XMLRPC::Client.new2('http://dev.upcdatabase.com/rpc') #D. lookupUPC is a method, the number is a product UPC @item = server.call('lookupUPC', '720642442524') #E. Store the result in an array p @item puts "Description :: " + @item["description"] puts "Type :: " + @item["size"]
Revision: 4077
Updated Code
at October 21, 2007 19:09 by chrisaiv
Updated Code
#Example 1: Find a State in a Specific Sort Order #A. Import the XMLPRC Library (Thanx Michael Nuemann) require 'xmlrpc/client' #B. You have to define the web address that will run the RPC against server = XMLRPC::Client.new2('http://betty.userland.com/RPC2') puts server.call('examples.getStateName', 1) #Example 2: Find product information based on a UPC number #C. You have to define the web address that will run the RPC against server = XMLRPC::Client.new2('http://dev.upcdatabase.com/rpc') #D. lookupUPC is a method @item = server.call('lookupUPC', '720642442524') #E. Store the result in an array p @item puts "Description :: " + @item["description"] puts "Type :: " + @item["size"]
Revision: 4076
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 21, 2007 18:48 by chrisaiv
Initial Code
#
Initial URL
Initial Description
RPC is an alternative to SOAP or REST. If you find a webservice that has an implementation, here is are a few ways to make it work using Ruby
Initial Title
XML-RPC (Remote Procedure Calls)
Initial Tags
Initial Language
Ruby