WSO2 Python Script Mediator

2019-06-04 04:52发布

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.

1条回答
何必那么认真
2楼-- · 2019-06-04 05:29

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.

查看更多
登录 后发表回答