Created
December 19, 2016 21:31
-
-
Save jonathanvila/971f0ed5c5d74e4509b3a470ae3adeab to your computer and use it in GitHub Desktop.
Camel route
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from("file://src/test/resources/messages?fileName=products.xml"). | |
log("Source Body : ${body}"). | |
to("stream:out"). | |
split(xpath("//Skus/Sku")).log("Split Body : ${body}"). | |
setHeader("SkuID", xpath("//Sku/Id")). | |
convertBodyTo(String.class).to("mock:end"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment