You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Håkon Sagehaug <Ha...@bccs.uib.no> on 2009/01/29 10:01:14 UTC

Setting soap headers at server side using messagecontext

Hi

I'm making my own little STS service and want the server side to add some
costume soap headers for the response to the client. What I've got now is
this

MessageContext.getCurrentMessageContext().getEnvelope().getHeader()
                    .addChild(getPayload("Header"));

But when I look at the message received to the client the header I inserted
at the server is not there, id I debug the at server side I see that the my
new element is added to the header, so I was wondering if anyone knows what
to to for getting my costume header to the client.

I'm using rampart, axis2 and tomcat.

cheers, Håkon
-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)