1

I'm trying to use a Script Mediator in WSO2 that has the following definition:

<script xmlns="http://ws.apache.org/ns/synapse" language="py" key="myPythonScript" function="process"/>

I had to hard-code the "py" as language since Javascript, Ruby, and Groovy were the only options available in the language drop down list, although the WSO2 ScriptMediator documentation states that Python is supported.

When I try to save my proxy changes I get the error "ERROR - ScriptMediator No script engine found for language: py"

Is Python, in fact, unsupported in WSO2 in the ScriptMediator? Or do I need to modify something somewhere to enable processing of Python scripts?

Thank you.

Community
  • 1
  • 1

1 Answers1

1

you have to put the python script library dependency jar inside ESB_HOME/repository/component/lib. Then you will be able to save the proxy and use it.

Subash Chaturanga
  • 814
  • 2
  • 10
  • 20
  • What exactly is the 'python script dependency jar' that I need to include in component/lib? Can you point me to any documentation or examples that go through this process? The only mention of a dependency that I've seen through an online search is jython. Thank you. – user2686758 Oct 14 '13 at 17:21