From: Alin Popa Date: 2007-01-30T03:26:51+09:00 Subject: Re: Object.id problem Alin Popa wrote: > Alex Amat wrote: >> Hi yet another Soap problem >> >> I have a web service with a method called {}id however when i call this >> method project.id it returns the Object id instead of calling the method >> id. >> >> Any ideas on how to call the method id > > Hi Alex, > > Can you tell us please, how do you make the call ? (maybe an example > will be helpful). > > Thanks. > > Alin. I've tried in 2 ways and it's working: 1: #!/usr/bin/ruby require 'soap/rpc/driver' drv=SOAP::RPC::Driver.new('http://localhost:8080/axis/Ids.jws') drv.add_method("id") puts drv.id 2: #!/usr/bin/ruby require 'soap/wsdlDriver' wsdl = "http://localhost:8080/axis/Ids.jws?wsdl" driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver puts driver.id -- Posted via http://www.ruby-forum.com/.