将注册表项加载到wso2属性介体中

nid*_*kil 2 wso2 wso2esb

我目前正在使用以下语句从wso2 esb中的本地条目加载数据:

<property name="MAPPING" expression="get-property('mapping_id_ep_v1')" />
Run Code Online (Sandbox Code Playgroud)

它加载以下名为mapping_id_ep_v1的本地条目:

<mappings>
    <mapping id="ep_1">http://localhost:8280/services/ep_1</mapping>
    <mapping id="ep_2">http://localhost:8280/services/ep_2</mapping>
    <mapping id="ep_3">http://localhost:8280/services/ep_3</mapping>
<mappings>
Run Code Online (Sandbox Code Playgroud)

我想从注册表项加载数据.我认为以下内容可行:

但是,它会引发异常:

Evaluation of the XPath expression conf:/custom/inspectieview/routing.xml') resulted in an error {org.apache.synapse.util.xpath.SynapseXPath}
org.jaxen.UnresolvableException: Cannot resolve namespace prefix 'conf'
Run Code Online (Sandbox Code Playgroud)

任何人都知道是否可以将注册表中的值加载到属性介体中?

此致,nidkil

nid*_*kil 6

我解决了我的问题.对于对解决方案感兴趣的人来说,它实际上非常简单.以下代码将存储在注册表中的资源加载到可以在介体/序列/等中引用的属性中.

<property name="MAPPING" expression="get-property('gov:/custom/service/resource')" />
Run Code Online (Sandbox Code Playgroud)

此致,nidkil