It works for me.
Here's mediator code snippet I used:

public boolean mediate(org.apache.synapse.MessageContext mc) {
        
   org.apache.axis2.context.MessageContext axisctx =
((org.apache.synapse.core.axis2.Axis2MessageContext)
mc).getAxis2MessageContext();
    log.info("This is the message id from axis
context:"+axisctx.getMessageID());

Thanks,
~john

On 9/14/07, Ruwan Linton <[EMAIL PROTECTED]> wrote:
> 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"
>

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

Reply via email to