i saw this post online, I have the same question. Somebody help please!
I'm trying to write a Ruby SOAP client to talk to, what appears to be
a very strange SOAP server (something written in Java).
The server requires me to submit an "AuthRequest" with a username and
password, and it returns an authToken and a sessionId. I can
authenticate properly, but the server requires that the authToken and
sessionId parameters be put in the Header, not the Body of successive
requests. II don't know how to get the SOAP library to do this (or if
it is possible). AuthRequest returns this:
<authToken>0_e5a61cd7bf0d7b41e53ccf9e111140f0d1a33 f97_79643d33363a39646335623033662d336465632d346661 632d383339302d3366366539323436653835343b
<sessionId type="admin" id="151">151</sessionId>
If you notice above, the server always supplies a Header back too. So
how can I put parameters into the Header? Can I build a custom header