How to dynamically route message in WSO2 ESB based on XML configuration file

后端 未结 3 2035
清酒与你
清酒与你 2021-01-16 03:31

I am trying to route a message based on information in a XML snippet stored as a local entry (key=mapping_id_ep_v1.xml). The id used to look-up the correct endpoint and it

3条回答
  •  盖世英雄少女心
    2021-01-16 03:54

    Yes this is a limitation. Actually, this should be a functionality of the enrich mediator. Will create a feature request to get this fixed for the next ESB release.

    For now you can do this with:

    • Preserve current soap payload : using enrich
    • Replace current body with the content of the property - enrich
    • Evaluate xpath against the current body and extract the required content. (Use that as the EP)- property
    • Restore the message body with preserved payload - enrich

    I know... it's a hack :)

提交回复
热议问题