Warm tip: This article is reproduced from serverfault.com, please click

wso2-是否可以在$中使用$ SYSTEM前缀

(wso2 - Is it possible to use the $SYSTEM prefix in the section of payloadFactory mediator?)

发布于 2020-12-08 13:30:14

我使用WSO2 EI v6.5.0。我想将外部SOAP服务的用户名和密码从系统环境变量加载到有效负载工厂介体中。是否可以在本节中使用$ SYSTEM前缀?

Questioner
Роман А.
Viewed
11
Роман А. 2021-04-12 21:56:46

在我的情况下,此脚本中介器起作用:

<script description="get cereditorials" language="js">
<![CDATA[mc.setProperty("user", java.lang.System.getenv("ENV_USER"));
         mc.setProperty("pwrd", java.lang.System.getenv("ENV_PWRD"));]]>
</script>