wso2 - 如何检查注册表项是否存在于 esb 中
wso2 - how to check if a registry key exist or not into esb
在 ESB 中是否可以检查注册表项是否存在,并取回类似 TRUE 或 FALSE 的值?
这是我的钥匙:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="w3.org/2001/12/soap-envelope" soap:encodingStyle="w3.org/2001/12/soap-encoding">
<soap:Body xmlns:m="example.org/stock">
<localEntry xmlns:local="ws.apache.org/ns/synapse" key="myVersion2">1</localEntry>
</soap:Body>
</soap:Envelope>
我会尝试检查密钥 "myVersion2" 是否存在
谢谢
问候
克劳迪奥
我自己修好了..
获取"key"值并添加过滤器就足够了
<property name="registryKey"
expression="$ctx:myProp//localEntry/@key"
scope="default"
type="STRING"/>
...
<filter source="get-property('registryKey')"
regex="myVersion2"
description="filter">
我希望这可以帮助其他人
问候
克劳迪奥
在 ESB 中是否可以检查注册表项是否存在,并取回类似 TRUE 或 FALSE 的值?
这是我的钥匙:
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="w3.org/2001/12/soap-envelope" soap:encodingStyle="w3.org/2001/12/soap-encoding">
<soap:Body xmlns:m="example.org/stock">
<localEntry xmlns:local="ws.apache.org/ns/synapse" key="myVersion2">1</localEntry>
</soap:Body>
</soap:Envelope>
我会尝试检查密钥 "myVersion2" 是否存在 谢谢
问候 克劳迪奥
我自己修好了..
获取"key"值并添加过滤器就足够了
<property name="registryKey"
expression="$ctx:myProp//localEntry/@key"
scope="default"
type="STRING"/>
...
<filter source="get-property('registryKey')"
regex="myVersion2"
description="filter">
我希望这可以帮助其他人 问候 克劳迪奥