Useful xpath expressions in WSO2 ESB

Reading part of the Message:

        expression="$body/child1/child2"

String Concatenating:
         expression="fn:concat('string1','string2',...,'stringN')"

Reading values from Secure Vault:
         expression="wso2:vault-lookup('APIM.Admin.Password')"

Reading entities from ESB Registry:
         expression="get-property('registry', 'gov://_system/config/some/path/abc.txt')"

Base64 encoding:
        expression="base64Encode('string_to_be_encoded')"

Share:

0 comments