【发布时间】:2018-12-13 22:25:01
【问题描述】:
我正在尝试以下选项,但我遇到了错误,任何人都可以建议我解决方案。我添加了 synapse.xpath.dom.failover.enabled=true 代码:试图用属性值替换~TOKEN~
<property name="verificationLink" expression="fn:replace($ctx:reqVerifyUrl , '~TOKEN~', get-property('verification_code'))" scope="default" type="STRING" xmlns:fn="http://www.w3.org/2005/xpath-functions" />
错误:
TID: [-1234] [] [2017-02-15 00:14:19,318] ERROR {org.apache.synapse.util.xpath.SynapseXPath} - Evaluation of the XPath expression fn:replace($ctx:reqVerifyUrl , '~TOKEN~', get-property('verification_code')) resulted in an error {org.apache.synapse.util.xpath.SynapseXPath} net.sf.saxon.trans.XPathException: Unknown system function get-property()
【问题讨论】: