In my camel route has below route , which send file input to xquery to
generate file output. as below shown

################# camel route ##############

from("file:src/data?moveFailed=.error").
to("xquery:myxquery.xq").to("file:target/output");


My problem is myxquery.xq file it has a function which expecting a variable
called $myTestRequest

How can I pass the message after file endpoint as the variable
($myTestRequest  )and give it to XQuery endpoint to use? Any hints will be
more than welcome!


############ Below is snippet code of myXQuery ###############
declare variable $myTestRequest as element(ns:MyTestRequest) external;
xf:convert_To_InternalRequest($myTestRequest)

Reply via email to