In fact, it is possible to access client headers at the out going path. You need to get the incoming message context from the operation context and then get the soap headers. One other way to do this is to write your own MessageReceiver, since it has access to both messages. Simply you can do anything you want with it.
Deepal > Hi, > thx for answer. My problem is a little more complicated, i think. > Client ADD Soap Header with some information. > Server get Soap Header, elaborate and produce a result. And need to > answer back to client in the header. > So, if i'm not wrong, from outflow chain (server side) I can't see the > information coming from client (message was consumed) > and In the service I can see that header but can't add response in > header. > > am I wrong? I hope so ! > > Thx in advice, > Alessio. > > Il 26.03.2012 16:16 Deepal Jayasinghe ha scritto: >> Hi there, >> >> Add a soap header can be easily done by adding a handler in the outgoing >> message flow. >> >> You can access the soap headers at the client side by following the >> instructions given here: >> http://wso2.org/library/3156 >> >> On 3/26/2012 10:12 AM, alessio.lunarde...@iit.cnr.it wrote: >>> Hi all, >>> i need to adding a custom header from web service in response to >>> client. >>> I've a ws like this: >>> public OMElement fname(OMElement element){ >>> ... >>> return OMElement >>> } >>> I need to add SOAPHeader just before the "return" and access it from >>> client. I need how to access from client, but how do that here in the >>> service for "outgoing" message that will be sent back to client? >>> >>> Thx in advice, >>> Alessio. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >>> For additional commands, e-mail: java-user-h...@axis.apache.org >>> >>> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org