Michele Mazzucco wrote:
> Hi Eran,
> 
> yes, I need to add some headers from the service and I'm using
> RawXMLINOutMessageReceiver. Should it work if I do it into
> setOperationContext() when
> msgCtx = opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE)
> is not null (i.e. the message is going out)? Or do I need a handler?

I always prefer if you handle SOAP headers with handlers.

I just checked the code and it seems you can not add headers within your
service impl class, as RawXMLINOutMessageReceiver calls the impl method,
gets the result and always adds that to the body of the out going message.

The only option to do this is to add a handler, which is the case it
should be.

-- Chinthaka

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to