[Dev] Can I access axis2MessageContext within the script mediator?

2015-10-12 Thread Amila Maha Arachchi
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

Re: [Dev] Can I access axis2MessageContext within the script mediator?

2015-10-12 Thread Kevin Ratnasekera
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

Re: [Dev] Can I access axis2MessageContext within the script mediator?

2015-10-12 Thread Amila Maha Arachchi
Thanks for the reply Kevin. In my case, I want the axis2MessageContext to be available for the script mediator because script mediator is the one used when creating prototype APIs in API manager. As you have suggested, I can use the property mediator. But, it has to be done after publishing the