This documentation is for WSO2 Enterprise Service Bus version 4.7.0 . View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This sample uses Ruby so first setup support for this in ESB as described at Configuring JRuby set up support for set up support for the Script mediator.

  • Start the Synapse configuration numbered 353: i.e. wso2esb-samples -sn 353
  • Start the Axis2 server and deploy the SimpleStockQuoteService if not already done

This sample is functionally equivalent to sample # 350 (#351 and #8) but instead uses a Ruby script using the JRuby interpreter. The script has two functions, 'transformRequest' and 'transformResponse', and the Synapse configuration specifies to be invoked when used. Execute the stock quote client to send a custom stock quote as per per Sample 350 and check the received stock quote response.