Hi
You can take a look at book sample in examples directory. There is a
sample how to add data to soap header.
Your code should looks like :
Element sid = new Element("customernumber");
sid.setText("123456");
Element header = smc.getOutMessage().getOrCreateHeader().;
header.addContent(sid).
On 11/16/06, Foster Bob <[EMAIL PROTECTED]> wrote:
Hi,
I have to add an element to the header of each outgoing message.
So I wrote a Handler where I do something like this:
Element sid = new Element("customernumber");
sid.setText("123456");
smc.getOutMessage().getOrCreateHeader();
smc.getOutMessage().setHeader(sid);
I can see in debug that this works, the element is added to the MessageContext.
But it is not send on the wire....
I tried to find a solution but there is no documentation or nothing about that.
The
javadoc itself is hardly containing any information which makes things even
worse..
Can anyone help me...
Thanks,
Bob
---------------------------------------------------------
Juega y llévate una PS2 two:
http://juegos.ya.com/consolas_y_pc/2005/09/concurso-ps2.html
Ya.com ADSL 24h + Llamadas Nacionales y Locales 24h + Llamadas a MÓVILES.
Desde 19,95 €/mes+IVA. http://acceso.ya.com/ADSLllamadas/1mbvoz/
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email