【发布时间】:2015-01-14 18:54:20
【问题描述】:
我根据文档配置了代理服务参数:
<proxy xmlns="http://ws.apache.org/ns/synapse" name="CQProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
<target>
...
</target>
<parameter name="TestParam">ParamValue1</parameter>
</proxy>
现在我需要从序列中访问它。有什么办法吗?
我尝试使用脚本中介访问它:
<script language="js">mc.setProperty("TestParamProp", mc.getParameter("TestParam"))</script>
但它会抛出“找不到函数 getParameter”。错误。
请指教。
【问题讨论】:
-
你检查 mc.getParameter("$ctx:TestParam") 了吗?
-
它也不起作用。问题是 mc.getParameter() 函数无法识别。