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 <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to