WSO2 Python Script Mediator

非 Y 不嫁゛ 提交于 2019-12-08 09:16:27

问题


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:


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.



来源:https://stackoverflow.com/questions/19307445/wso2-python-script-mediator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!