axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <Michele.Mazzu...@ncl.ac.uk>
Subject Re: [Axis2] setOperationContext() question
Date Fri, 26 May 2006 18:30:50 GMT
Chathura,

I'm sorry, but if I use the same handler, how can I distinguish between
incoming and outgoing messages?

Thanks,
Michele

Chathura Herath wrote:
> The out message context is created at the end of the in chain by the
> message receiver only if required(e.g. if the mep is In-Only the
> particular message receiver will not create the out message context).
> Anyway, what you have described below isnt the anticipated programming
> model of axis2.
> Here is wht you should do.
> Write an inflow  handler  that saves the headers/state(that u want to
> lookup in the outflow) in the operationcontext using the setProperty
> method.
> Write and outflow handler that extracts this saved state/header from
> the operation context and set it to the out soapEnvelop.
> Create amodule out of this handler(s) and deploy.
> You can use the same handler for both,  have a look at the login
> module in the user guide.
> http://ws.apache.org/axis2/1_0/userguide4.html#Step2_:_LogHandler
> HTH
> Chathura
> 
> On 5/26/06, Michele Mazzucco <Michele.Mazzucco@ncl.ac.uk> wrote:
>> Hi all,
>>
>> is it possible to get the same result with outgoing messages as well by
>> using the setOperationContext() (it seems to me that the
>>
>> outMsgCtx =
>> opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
>>
>> into the setOperationContext() doesn't work as espected
>> )?
>>
>> If no, is there any way to add some headers to outgoing messages?
>>
>> Thanks in advance,
>> Michele
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message