Dash in SOAP variable name

L

lukas Shb

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
 
J

John Leach

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.
 
L

luk asz

something like:
service.doSomeMethod({"some-varname" => "value", "var2" => "value"})

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

too bad :(

lukasz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,737
Latest member
Georgeengab

Latest Threads

Top