祝使用XPath 我輸入這樣的我們如何才能在Wso2esb使用XPath
<property name="Message" value="assetname:ups,assetcode:452chi,assetid:548935,assetvalue:215" scope="default"/>
,我需要使用XPath 在同一財產打破我需要這樣的
打破wso2esb字符串斷線assetname:ups
assetcode=452chi
assetid=54895
assetvalue=215
爲了這個,我試圖與記號化的功能,但wso2esb顯示錯誤 我的配置文件
<proxy xmlns="http://ws.apache.org/ns/synapse" name="Xpathcheck" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
<target>
<inSequence>
<property name="max" value="1" scope="default" type="STRING"/>
<property name="min" value="1" scope="default" type="STRING"/>
<property name="MessageText" expression="fn:concat('Assetid:',get-property('min'),',','Assetname:',get-property('max'))" scope="default" type="STRING"/>
<property name="Tokenize" expression="fn:tokenize(get-property('Messagetext'),',')" scope="default" type="STRING"/>
<log>
<property name="MessageText" expression="get-property('MessageText')"/>
<property name="Tokenize" expression="get-property('Tokenize')"/>
</log>
</inSequence>
<outSequence/>
</target>
<description></description>
</proxy>
但是像這樣的情況下引發錯誤u必須爲了這個,我需要這在db表存儲爲一個字段,它看起來像單獨的行 錯誤的任何想法是
ERROR - SynapseXPath Evaluation of the XPath expression fn:tokenize(get-property('Messagetext'),',') resulted in an error
org.jaxen.UnresolvableException: No Such Function tokenize
謝謝你的回答。 –