Re: Putting data at soap header

Simon Macneall
2011-06-20T23:34:27Z

Hi,

Have a look here - https://www.ruby-forum.com/topic/86107

You need to create your own Header handler and inject the data through
that.

Cheers
Simon

On Tue, 21 Jun 2011 05:11:32 +0800, Rander
<rander-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> Hello everybody, I need help! :(
>
> I need to communicate through webservice, but I need put an information
> in
> the soap header before invoking the method.
> I´m using this way:
>
> soap >
SOAP::WSDLDriverFactory.new("http://ti-007.tron.local/CondominioWeb/CondominioWebServico.svc?wsdl").create_rpc_driver
>
> data_inicial = Date.new(2011, 05, 07)
> data_final = Date.new(2011, 05, 07)
> unidade_central_id = 5
> unidade_id = 2505
> @relatorio_id = soap.EmitaBoletos(data_inicial, data_final,
> unidade_central_id, unidade_id)
>
> The idCliente = ''XXXXXX'' must be included in the soap
header
>
> Anybody can help me? Thanks a lot!

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at