From: James Gray Date: 2009-03-01T10:15:34+09:00 Subject: Re: xml-rpc calling question On Feb 28, 2009, at 10:23 AM, dhf0820.lists@gmail.com wrote: > Ok I have tried that with the following: > server = XMLRPC::Client.new2("http://websearch.ramaui.com/ramxml.php") > results = server.call("lists",{ "dbid" =>"dbid1113086003", "getlist" > => "district"}) This looks right to me. > the actual xml structure that should be passed is this: > When called from an unapproved ip it should come back with a message > stating so. They both seem to be what we are seeing: $ ruby xtest.rb xtest.rb:7: warning: method redefined; discarding old call2 listsgetlistdistrictdbiddbid1113086003 /usr/local/lib/ruby/1.8/xmlrpc/client.rb:414:in `call': You do not have access to XML-RPC WebSearch. (XMLRPC::FaultException) Contact websearch@ramaui.com if you have any questions. from xtest.rb:16 $ cat xtest.rb #!/usr/bin/env ruby -wKU require "xmlrpc/client" # Patch XML-RPC to show us what is sent. class XMLRPC::Client def call2(method, *args) request = create().methodCall(method, *args) puts request data = do_rpc(request, false) parser().parseMethodResponse(data) end end server = XMLRPC::Client.new2("http://websearch.ramaui.com/ramxml.php") results = server.call( "lists", "dbid" => "dbid1113086003", "getlist" => "district" ) __END__ What make you think this isn't working? James Edward Gray II