wso2esb - Dynamic xpath for the property creation in wso2 esb -


my requirement have create property based on xpath based on chaining.

flow :

1)i calling service1 , based on response creating property mediator (svc1_property). 2)the call made service2 , response fetched service2 has list of values .

3) need fetch node response of svc2 based on xpath using property : svc1_property.

config :

expression="fn:concat("//imagelist[level='employee'][imagecaption='",$ctx:empname,"']/img_large")" scope="default" type="string"

empname property created on svc1

use evaluate

example:

<property name="xpathexpr" expression="fn:concat('//',get-property('xpathexpression'))" scope="default" type="string"/> <property name="xpatheval" expression="evaluate($ctx:xpathexpr)" scope="default" type="string"/> 

you can find more infomation in blog.


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -