Hi Amila, I have gone through the script mediator code/config, I dont think we might able to access axis2MessageContext other than the SynapseMessageContext. Can't we use either Property mediator or class mediator in this specific use case? Regards Kevin
On Mon, Oct 12, 2015 at 2:23 PM, Amila Maha Arachchi <ami...@wso2.com> wrote: > Hi, > > I want to set a property in axis2MessageContext from the script mediator > in ESB or API Manager. According to the doc [1], script mediator has not > exposed the axis2MessageContext to the script mediator. > > $Subject? > > My original requirement is to set a response code for a resource of a > prototyped api on api manager. There is a property named HTTP_SC which > needs to be set in axis2MessageContext. > > [1] https://docs.wso2.com/display/ESB480/Script+Mediator > > Regards, > Amila. > > -- > *Amila Maharachchi* > Senior Technical Lead > WSO2, Inc.; http://wso2.com > > Blog: http://maharachchi.blogspot.com > Mobile: +94719371446 > > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev