Raymond de Hond
2018-11-26 09:15:51 UTC
Hi,
I created a camel route using a soap endpoint (contract first) using format
PAYLOAD.
My question is, what's the best approach to read large xml messages (up to
20mb) using groovy xmlSlurper? This slurper accepts a java.io.Reader as
input. Is it possible to do something like:
def xml = exchange.getIn().getBody(java.io.Reader);
And should I enable streamCache = true on my route?
Regards,
Raymond
I created a camel route using a soap endpoint (contract first) using format
PAYLOAD.
My question is, what's the best approach to read large xml messages (up to
20mb) using groovy xmlSlurper? This slurper accepts a java.io.Reader as
input. Is it possible to do something like:
def xml = exchange.getIn().getBody(java.io.Reader);
And should I enable streamCache = true on my route?
Regards,
Raymond