Posted By: Erik Hollensbe
Date: 2007-10-26 22:30
Summary: libxml-xmlrpc released
Project: libxml-tools
LibXML XML-RPC is a package to provide similar functionality to the XML-RPC layer that already exists in ruby, but built on the faster LibXML2 bindings via the libxml-ruby project.
Using it is fairly simple:
client = XML::XMLRPC::Client.new('example.org', '/myweblog/xmlrpc.php')
client.rpcMethod(1,2,3) # converts native types
client.rpcMethod2([1,2,3]) # all natives that XML-RPC supports -- including arrays
response = client.rpcMethod3({ :Foo => 1, "Bar" => 2 }) # and structs
# and has enumerable report for the responses:
response.each do |x|
p x
end |
|