axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Bobek <>
Subject [Axis2] adding SOAP Headers in MessageSender (client API)
Date Mon, 05 Dec 2005 17:48:35 GMT

I need a way to add SOAP headers (other than addressing headers) within 
MessageSender. Up to now it is not possible, since SOAP headers should 
be set in MessageContext, but MessageContext is created not until the 
message is sent (prepareTheSOAPEnvelope() which creates the context is 
called inside send() in MessageSender).
As a workaround I could inherit from MessageSender and overwrite 
prepareTheSOAPEnvelope() with a MessageContext that I create in 
advance. Or is there another approach?

Thank you.
Andreas Bobek.

View raw message