I have a PERL script which i execute as give n below,

    <route id="APIcall">
        <from uri="direct:inter2" />
<to uri="exec:/usr/bin/perl?args=/home/user/invokeapi.pl" />

<to uri="direct:inter2" />
</route>

The PERL script prints the response from an API. I need to use the response
as the body for my next route, where i would unmarshall it to a XML. I get a
NULL pointer exception now when trying to unmarshal coz the response from
PERL script doesn't reach the next route. I got to know from the Camel
documentation that outfile property can be used to read the response if
written to a file. But i don't want to create a file every time. Can anyone
please help me resolve this?

Thanks,
Anish




--
View this message in context: 
http://camel.465427.n5.nabble.com/Output-from-a-PERL-script-for-route-tp5771607.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to