Hi, Some time back we proposed to changing the Axis2 message receiver's in such a way that the response SOAP Envelope is created and attached to the response MessageContext before calling the service implementation.. I'm can't remember whether we did it or not.. Wat's the Axis2 version r u using?
If adding headers to response envelope does not make them appear in the response message, then probably we have not done the above change or you are using some other message receiver.. One thing you can do is to write a Axis2 handler to change the outgoing message [1]. Another way is to write your own message receiver.. thanks, Thilina [1] http://ws.apache.org/axis2/1_4/modules.html On Mon, May 19, 2008 at 2:00 AM, <[EMAIL PROTECTED]> wrote: > > Hi there... > > > I am desperately trying to modify my response SOAP headers using Axis2. > I have managed to extract the headers from the inbound data, but I cannot > figure out how to get the outbound. > > The messagecontext (out) doesn't have any envelope, and creating one by hand > doesn't result in anything... > > > MessageContext mc = MessageContext.getCurrentMessageContext(); > > OperationContext operationContext = mc.getOperationContext(); > MessageContext outMessageContext = > operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE); > > > Some sample of how to extract the data on the client side would be nice as > well, I'm using a wrapper client, but the WSDL does not contain > the SOAP header declerations. > > BR > Thomas Vennström > -- Thilina Gunarathne - http://thilinag.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
