Hi all,

I'm trying to assign the result of a XQuery to a header, using Blueprint XML

In the documentation[1] I read:
setHeader("myHeader").xquery("resource:classpath:myxquery.txt", String.class)

The closest I got to translating the XQuery part to blueprint is:

<xquery>resource:classpath:mapping/SysteemMapping.xq</xquery>

but Camel seems to try to parse it as XQuery:

>>> SetHeader[MOWESB_SysteemMapping, 
>>> xquery{resource:classpath:mapping/SysteemMapping.xq}] <<< in route: 
>>> Route(route-geefVastlegging)[[From[cxf:bean:geefVastlegging]... because of 
>>> Illegal syntax: resource:classpath:mapping/SysteemMapping.xq

Any ideas?

Thanks,
Mathieu


[1] http://camel.apache.org/xquery.html

Reply via email to