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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -