From: John Leach Date: 2007-07-31T19:54:30+09:00 Subject: Re: Dash in SOAP variable name Hi, sounds like you might have found a bug in the soap library. as a work around, is there a "document" version of the soap call available? something like: service.doSomeMethod({"some-varname" => "value", "var2" => "value"}) John. -- http://johnleach.co.uk On Tue, 2007-07-31 at 19:12 +0900, lukas Shb wrote: > Hello, > > First the code of my little script. I am trying to get some infromation > from other service using SOAP. > > The code: > > require 'soap/wsdlDriver' > wsdl = "http://some.service.com?wsdl" > service = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver > service.doSomeMethod(1,1,1) > > --- > The "doSomeMethod" reqiuires 3 parameters but the name of the parameters > contains dash "-" char. And I get following error executing > "doSomeMethod": > > ERROR: NameError: `@some-varname' is not allowed as an instance variable > name > > Can anyone help me solving the problem ? I tried to find some solution > but I lost my hope :) > > Thank you in advance, > Lukasz