rubiii/savon — Issue #245: Problem with arrays
Author: toptierlabs
Created: 2011-12-05 18:24:04+00:00
State: open

I am having a problem consuming a SOAP service.

response = client.request(:create_speech_file) do
soap.body = {:token => token, :md5 => md5(md5('password') + token ), :text=> params[:text], :contentType => 'text/plain',:voiceId => 'us_eric', :codecId => 'mp3/22050', :params => []}
end

Params is a complex type, I want to send an empty array.
Here is the parameter in the wsdl

And listParams is defined as following:

I get the following error:
NoMethodError: undefined method `params' for main:Object
from /Users/toptier/.rvm/gems/ruby-1.9.2-p290/gems/savon-0.9.7/lib/savon/client.rb:164:in `method_missing'

Thanks!