Re: Post Request forwarded from Camel does not contain HTTP Body

2013-07-19 Thread ramrubio
Hi William, Attached is zip file with two projects. 1. sample.proxysvc - Contains camel proxy 2. sample.restsvc - Simple rest servic SampleProxySvc.zip e You will notice that proxysvc enables streamcaching on camel context

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-16 Thread Raul Kripalani
Have you set the Content-Type headers properly? Is the client sending "application/json"? Can you add a few log endpoints with showAll=true throughout the route, so we can see what's going on inside? Thanks. On 15 Mar 2013 14:21, "ramrubio" wrote: > Using camel version 2.10.4. > > slip is retur

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-16 Thread Willem jiang
Hi, I not think there is something wrong which could prevent StreamCaching working as we expect. Do you mind create a simple unit test case to produce the error that you meet? I need the case to help me dig the issue. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http:

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-14 Thread Willem jiang
What's you HTTP request look like? I just checked the code, if you are sending a HTTP POST with Form, the message body could be empty. BTW, which version of Camel are you using? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-14 Thread Willem jiang
what's the dynamicRouter slip look like? stream caching should work, can you show us how do you setup it? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.co

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-14 Thread ramrubio
Found answer to my question in documentation. Missed it. servlet component may only read stream once. Tried using streamcaching but that did not work. Do not know why. Instead copied body to string and reset it in request and that worked. Here is code in case someone runs into same issue. th

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-13 Thread ramrubio
I tried forwarding to both http-component and jetty component. For both requests the body is empty (even with the following set in url ?bridgeEndpoint=true&throwExceptionOnFailure=false&disableStreamCache=true&enableMultipartFilter=false). The error i get on my server side (Jersey) is the followi