Hi, I've got the same error as you and finally Ive got authentication but I cannot do anything more, with add_method I tried the list method and all I got was Errno::ECONNREFUSED: Connection refused - connect(2) (, #0) My class for a web service client: class WsJasperClient < SOAP::RPC::Driver JASPER_SERVER = "http://10.128.10.81/jasperserver/services/repository/" # Authentication works!!! def new(nameserver) # nameserver => JASPER_SERVER driver = SOAP::RPC::Driver.new(JASPER_SERVER) driver.options["protocol.http.basic_auth"] << [JASPER_SERVER, "jasperadmin", "jasperadmin"] end # Create driver and set up methods # It doesnt work yet :-( def add_methods # driver = SOAP::RPC::Driver.new("http://10.128.10.81/jasperserver/services/repository/" ) [ %w(login username password), %w(list uri), %w(get uri args), %w(runReport reportUri map)].each do |signature| self.add_method(*signature) end end end I hope this can help you though I havent been able to get it works. Post edited by: rosisr, at: 2006/12/04 10:27