J
Joe Van Dyk
argh
% cat server.rb
require 'xmlrpc/server'
class ClusterManager
def start_application args
p args
return "ok"
end
end
server =3D XMLRPC::Server.new 1998, `hostname`.strip
server.add_handler "ClusterManager", ClusterManager.new
server.serve
% cat test.rb
require 'xmlrpc/client'
client =3D XMLRPC::Client.new "fatire", nil, 1998
begin
puts client.call "ClusterManager.start_application", "oogie boogie woogie=
"
rescue XMLRPC::FaultException =3D> 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).
% cat server.rb
require 'xmlrpc/server'
class ClusterManager
def start_application args
p args
return "ok"
end
end
server =3D XMLRPC::Server.new 1998, `hostname`.strip
server.add_handler "ClusterManager", ClusterManager.new
server.serve
% cat test.rb
require 'xmlrpc/client'
client =3D XMLRPC::Client.new "fatire", nil, 1998
begin
puts client.call "ClusterManager.start_application", "oogie boogie woogie=
"
rescue XMLRPC::FaultException =3D> 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).