Which version of camel are you using?
It could relate to the issue of CAMEL-6349[1]

BTW, 
I guess you need to set the message header "Content-Type” with the value 
"application/pdf”, as camel-restlet need to use it for sent back the response.

[1]https://issues.apache.org/jira/browse/CAMEL-6349

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On September 23, 2014 at 6:59:06 AM, [email protected] 
([email protected]) wrote:
> Hi,
>  
> I am trying to use restlet endpoint to convert and get a PDF.
> However I am getting a blank document back.
> The same code is working if I am using jetty as http endpoint. Also if I
> write it to file it is working. Looks like I am missing some header - can
> anyone help me please?
>  
>  
>  
>  
>  
> > uri="xslt://ConvertToXSLFODoc.xsl?transformerFactoryClass=net.sf.saxon.TransformerFactoryImpl&contentCache=false&failOnNullBody=false"/>
> >   
> application/pdf;
> charset=utf-8
>  
>  
>  
>  
>  
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/camel-fop-with-http-reslet-endpoint-tp5721676.html
>   
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>  

Reply via email to