SAVON - Call

**

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

tem:carrinho

gpa:CEPparameter here</gpa:CEP>

gpa:CNPJparameter here</gpa:CNPJ>

gpa:IdCampanha parameter here </gpa:IdCampanha>

gpa:Produtos

gpa:DadosListaProdutoCarrinhoDTO

gpa:Codigo parameter here </gpa:Codigo>

gpa:Quantidadeparameter 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!

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

Fred

Sorry!! Ruby 1.9

Em quarta-feira, 26 de junho de 2013, Frederick C. escreveu: