This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Using Scripts in Mediation (Script Mediator)
The following samples demonstrate how to use the Script mediator:
- Sample 350: Introduction to the Script Mediator Using JavaScript
- Sample 351: Inline script mediation with JavaScript
- Sample 352: Accessing Synapse message context API using a scripting language
- Sample 353: Using Ruby Scripts for Mediation
- Sample 354: Using Inline Ruby Scripts for Mediation
See also Sample 441: Converting JSON to XML Using JavaScript.
For tips and best practices for using JavaScript, see http://jstherightway.org/.