**
I have this method on a web service I''m consuming, using SAVON 3 on
Rails 3
and Ruby 1.9.7 web app
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/"
xmlns:gpa="http://schemas.datacontract.org/2004/07/Gpa.Comercio.Servicos.Contracts.DTO">
<soapenv:Header/>
<soapenv:Body>
<tem:CalcularCarrinho>
<!--Optional:-->
<tem:carrinho>
<!--Optional:-->
<gpa:CEP>parameter here</gpa:CEP>
<!--Optional:-->
<gpa:CNPJ>parameter here</gpa:CNPJ>
<!--Optional:-->
<gpa:IdCampanha> parameter here </gpa:IdCampanha>
<!--Optional:-->
<gpa:Produtos>
<!--Zero or more repetitions:-->
<gpa:DadosListaProdutoCarrinhoDTO>
<!--Optional:-->
<gpa:Codigo> parameter here </gpa:Codigo>
<!--Optional:-->
<gpa:Quantidade>parameter here</gpa:Quantidade>
</gpa:DadosListaProdutoCarrinhoDTO>
</gpa:Produtos>
</tem:carrinho>
</tem:CalcularCarrinho>
</soapenv:Body></soapenv:Envelope>
How should I make a call to this method, considering that the
"Produtos"
parameter is an array? I tried:
client.call(:calcular_carrinho){message(id_campanha: 2543, cnpj:
''93.528.261/0001-60'', cep: ''04080013'',
produtos: [''379457'', 1])}
P.S: I made tests with soapUI and the service is working...
Best!
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CABN%3DCd6vRiw%2BDdmd8kfvYd_W3_xsNpDmre45Svo2Bc135%3DOv7A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Wednesday, June 26, 2013 1:13:50 AM UTC+1, Otavio Lipari wrote:> I have this method on a web service I''m consuming, using SAVON 3 on Rails > 3 and Ruby 1.9.7 web app >Do you mean ruby 1.8.7 ? Savon 3 doesn''t support 1.8.7 Fred>-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7a54c455-ebfc-42b6-8433-080b4a38b023%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Fred Sorry!! Ruby 1.9 Em quarta-feira, 26 de junho de 2013, Frederick Cheung escreveu:> > > On Wednesday, June 26, 2013 1:13:50 AM UTC+1, Otavio Lipari wrote: > > >> I have this method on a web service I''m consuming, using SAVON 3 on Rails >> 3 and Ruby 1.9.7 web app >> > > Do you mean ruby 1.8.7 ? Savon 3 doesn''t support 1.8.7 > > Fred > >> -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:_e({}, > ''cvml'', ''rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org'');>. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:_e({}, ''cvml'', ''rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org'');> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/7a54c455-ebfc-42b6-8433-080b4a38b023%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CABN%3DCd4cfe%3D%2Bj7Pk8G5nbgvO%3DUJ10J8T_6j3ozOvfc%2BttGfJWQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.