Dash in SOAP variable name

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 :slight_smile:

Thank you in advance,
Lukasz

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

something like:

service.doSomeMethod({“some-varname” => “value”, “var2” => “value”})

nope. unfortunately it gives wrong number of arguments (1 for 3)
(ArgumentError)

too bad :frowning:

lukasz

On Jul 31, 1:09 pm, luk asz [email protected] wrote:


Posted viahttp://www.ruby-forum.com/.

You should post your question to http://groups.google.com/group/soap4r

dima wrote:

You should post your question to http://groups.google.com/group/soap4r

I’ve done it already.

Greetings,
Lukasz