Hi John,

See my comments in line;

On 9/15/07, J Bouck <[EMAIL PROTECTED]> wrote:
>
> I would like to get the WSSecurityEngine results in a custom synapse
> mediator (see the code sample at
>
> http://ws.apache.org/wss4j/package.html#Reporting_Security_results_to_services_applications
> ).
> Is it possible to get the org.apache.axis2.context.MessageContext in a
> synapse Mediator?  I only seem to have access to the
> org.apache.synapse.MessageContext in custom mediators.


Yes, but you can retrieve the axis2 message context using the following code
segment.

((Axis2MessageContext) synapseMessageContext).getAxis2MessageContext()


Here the synapseMessageContext is the Synapse MessageContext which casts to
Axis2MessageContext and there you have a method to get the axis2 message
context.

Thanks,
Ruwan

~john
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Reply via email to