From: Tom Copeland Date: 2005-10-11T05:06:19+09:00 Subject: Re: xmlrpc frustration On Thu, 2005-10-06 at 06:23 +0900, Joe Van Dyk wrote: > argh > > % cat server.rb > require 'xmlrpc/server' > > class ClusterManager > def start_application args > p args > return "ok" > end > end > > server = XMLRPC::Server.new 1998, `hostname`.strip > server.add_handler "ClusterManager", ClusterManager.new > server.serve Hi Joe - Hey, I'm doing some XMLRPC things at the moment too. When I run your test server and client I get: ============== $ ruby client.rb client.rb:6: warning: parenthesize argument(s) for future version ok ============== Yours, Tom > > > % cat test.rb > require 'xmlrpc/client' > > client = XMLRPC::Client.new "fatire", nil, 1998 > > begin > puts client.call "ClusterManager.start_application", "oogie boogie woogie" > rescue XMLRPC::FaultException => e > p e > p e.faultCode > p e.faultString > end > > > % ruby test.rb > /usr/local/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc': HTTP-Error: > 500 Internal Server Error (RuntimeError) > from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2' > from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:399:in `call' > from test.rb:7 > > What's up with the 500 Internal Server Error? > (btw, "oogie boogie woogie" printed in the server output). >