XMLRPC problem!

Hello,
I write this programs:

···
     client.rb

require “xmlrpc/client"
server = XMLRPC::Client.new(“localhost”,”/RPC2",7002)
server.call(“test”)

     server.rb

require "xmlrpc/server"
require "person"
s = XMLRPC::Server.new(7002)
s.add_handler(“test”){
Person.new(“mohsen”,21)
}
s.serve

     person.rb

class Person
include XMLRPC::Marshallable
attr_reader :name, :age
def initialize(name, age)
@name, @age = name, age
end
end


after run server.rb i run client.rb and give this message:
…:496:in `do_rpc’:HTTP_Error :500 Internal Server Error(Runtime
Error)
please help me.
thanks.
Mohsen

Mohsen Rahmanian Kooshkaki wrote:

after run server.rb i run client.rb and give this message:
…:496:in `do_rpc’:HTTP_Error :500 Internal Server
Error(Runtime
Error)

Hi Mohsen,

Hmmm, works for me. Which platform are you running on?

Aidan

Mohsen Rahmanian Kooshkaki wrote:

after run server.rb i run client.rb and give this message:
…:496:in `do_rpc’:HTTP_Error :500 Internal Server Error(Runtime
Error)
please help me.
thanks.
Mohsen

I beat my head alot on this one myself, once.
By changing the httpserver.rb source, I get this more enlightning error
message:
HTTP-Error: 500 Internal Server Error: No such file to load –
nqxml/streamingparser

Maybe that is the problem for you too?

···


([ Kent Dahl ]/)_ ~ [ http://www.stud.ntnu.no/~kentda/ ]/~
))_student
/(( _d L b_/ NTNU - graduate engineering - 4. year )
( __õ|õ// ) )Industrial economics and technological management(
_
/ö____/ (_engineering.discipline=Computer::Technology)

Kent Dahl wrote:

Mohsen Rahmanian Kooshkaki wrote:

after run server.rb i run client.rb and give this message:
…:496:in `do_rpc’:HTTP_Error :500 Internal Server Error(Runtime
Error)
please help me.
thanks.
Mohsen

I beat my head alot on this one myself, once.
By changing the httpserver.rb source, I get this more enlightning error
message:
HTTP-Error: 500 Internal Server Error: No such file to load –
nqxml/streamingparser

Maybe that is the problem for you too?

If NQXML is installed, also check that you have version 1.1.3p1 …
plain old 1.1.3 has a syntax error. See http://nqxml.sourceforge.net/
for details.

···


Frank Mitchell (frankm@bayarea.net)

Please avoid sending me Word or PowerPoint attachments.
See We Can Put an End to Word Attachments - GNU Project - Free Software Foundation