Passing nil to WSDL function

Consider the following script: I want to pass nil to ‘eventId’ instead
of 0.
But ruby spits out error if i try to use nil. It works for 0.

soap = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
soap.wiredump_file_base = “soapresult”

parameterMap = { “versionSetName” => “live”,
“eventId” => 0,
}

print “\nCAlling getVersionSet…\n”
result = soap.getVersionSetFile(parameterMap)

Thank you,
Raja

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

[email protected] wrote:

Consider the following script: I want to pass nil to ‘eventId’ instead of 0.
But ruby spits out error if i try to use nil. It works for 0.

soap = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
soap.wiredump_file_base = “soapresult”

parameterMap = { “versionSetName” => “live”,
“eventId” => 0,
}

Can I see the WSDL and the error message you get? How it’s going when
you remove ‘eventId => 0’ ?

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRL7OOR9L2jg5EEGlAQLU/wf/fLrxUUzJ5YiIGBj4D+91+jn9DbkfQtGy
udYQpR/dMubY7NuNk2fhu8JVTd0k2zOc3MJg5go9H4gS+eCvIVA4Dl621w9KB4ag
K4regaa9JPzX4HloVFYP8DhUgN6z5mOhlBMVrqKNfbPjgOxhoDfw8KUywYhUIJJ9
6EVQZBHTN+vOe/bO9vQRbJrzvYByxYQAz5zgCH/SclIGbvCUaZ4z9P9Cdx00GTS7
cbCZzGKB5guPg1y7vwvs9LwWR0Pn4vgQn22qhcvbTK8DWoOaogFCFJDG6IAKhSSK
3sNp/p8oJKjGk2WU3pv8KH8J1BLuDQED7WgD9JyXByVJ6xNUyQcGHQ==
=z1jm
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs