You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by henriqueo <he...@gmail.com> on 2012/05/05 18:45:02 UTC
CXFRS + Camel
Hi there,
I am using CXFRS in Camel, I am trying two send a big string(XML format)
through URL, but I am getting a 413 Http error(Full Head), how can I
increase buffer size?
regards
--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXFRS + Camel
Posted by Willem Jiang <wi...@gmail.com>.
Hi,
What's your message looks like ? What's the size of it?
BTW, did you have any other components which is using jetty?
On Tue Jun 12 22:54:20 2012, krakras wrote:
> Thanks al lot. Just what I needed, had the same problem while connecting with
> jetty
>
>
> servicemixConnection.setRequestProperty("Content-type",
> "application/xml");
> servicemixConnection.setRequestProperty("Accept",
> "application/xml");
>
> <camelContext xmlns="http://camel.apache.org/schema/blueprint">
> <route id="webservice_voor_kennisgeving">
> <from uri="jetty:http://localhost:8282/basisregistraties"/>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5714373.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang
Re: CXFRS + Camel
Posted by krakras <kr...@gmail.com>.
Thanks al lot. Just what I needed, had the same problem while connecting with
jetty
servicemixConnection.setRequestProperty("Content-type",
"application/xml");
servicemixConnection.setRequestProperty("Accept",
"application/xml");
<camelContext xmlns="http://camel.apache.org/schema/blueprint" >
<route id="webservice_voor_kennisgeving">
<from uri="jetty:http://localhost:8282/basisregistraties"/>
--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5714373.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXFRS + Camel
Posted by Willem Jiang <wi...@gmail.com>.
What's your restClient looks like ?
I just want to make sure you don't send the payload as part of http
header.
On Mon May 7 22:27:03 2012, henriqueo wrote:
> Hi..
>
> this is the msg header
> restClient.addHeader("Accept", "application/xml");
> restClient.addHeader("Content-type", "application/xml");
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5691188.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang
Re: CXFRS + Camel
Posted by henriqueo <he...@gmail.com>.
Hi..
this is the msg header
restClient.addHeader("Accept", "application/xml");
restClient.addHeader("Content-type", "application/xml");
--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5691188.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXFRS + Camel
Posted by Björn Bength <bj...@gmail.com>.
Hello,
You most likely forgot to add the content-type header.
If you don't, the body is beleived to be a header.
Regards
Björn
On Mon, May 7, 2012 at 3:32 PM, henriqueo <he...@gmail.com> wrote:
> Hi All,
>
> I´ve used POST and PUt methods.
> I can log it, but I cant decrease payload..
> Any idea how can I increase buffer size?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5691044.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXFRS + Camel
Posted by henriqueo <he...@gmail.com>.
Hi All,
I´ve used POST and PUt methods.
I can log it, but I cant decrease payload..
Any idea how can I increase buffer size?
--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5691044.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXFRS + Camel
Posted by Claus Ibsen <cl...@gmail.com>.
On Sun, May 6, 2012 at 7:51 PM, henriqueo <he...@gmail.com> wrote:
> Hi,
>
> Im using camel 2.9.2, cxf 2.5.2 and msg length is 9984 bytes..
>
Maybe you can log on the http level what you send to the CXF-RS service?
I wonder if you use HTTP GET or HTTP POST.
As well if you send the data chunked or not
http://en.wikipedia.org/wiki/Chunked_transfer_encoding
I wonder if there is some default 8kb limit that you exceed with your
9kb payload. If possible can you try with a smaller payload?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5689485.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: CXFRS + Camel
Posted by henriqueo <he...@gmail.com>.
Hi,
Im using camel 2.9.2, cxf 2.5.2 and msg length is 9984 bytes..
--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5689485.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXFRS + Camel
Posted by henriqueo <he...@gmail.com>.
Do you know how I configure server to accept bigger payloads?
--
View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176p5689493.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXFRS + Camel
Posted by Sergey Beryozkin <sb...@gmail.com>.
I'm not 100% sure but it appears this can only be fixed by configuring
the target server to accept larger payloads. Perhaps applying GZIP might
help bypassing the restriction...Or considering alternative options for
delivering big payloads...
Cheers, Sergey
On 06/05/12 08:36, Claus Ibsen wrote:
> Hi
>
> Can you tell us a bit more. Which version of CXF and Camel are you using?
> And how big is the XML you send?
>
> And if you get a stacktrace etc, can you poste that.
>
>
> On Sat, May 5, 2012 at 6:45 PM, henriqueo<he...@gmail.com> wrote:
>> Hi there,
>>
>> I am using CXFRS in Camel, I am trying two send a big string(XML format)
>> through URL, but I am getting a 413 Http error(Full Head), how can I
>> increase buffer size?
>>
>> regards
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
Re: CXFRS + Camel
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Can you tell us a bit more. Which version of CXF and Camel are you using?
And how big is the XML you send?
And if you get a stacktrace etc, can you poste that.
On Sat, May 5, 2012 at 6:45 PM, henriqueo <he...@gmail.com> wrote:
> Hi there,
>
> I am using CXFRS in Camel, I am trying two send a big string(XML format)
> through URL, but I am getting a 413 Http error(Full Head), how can I
> increase buffer size?
>
> regards
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: CXFRS + Camel
Posted by Willem Jiang <wi...@gmail.com>.
Did you use the POST method ?
On 5/6/12 12:45 AM, henriqueo wrote:
> Hi there,
>
> I am using CXFRS in Camel, I am trying two send a big string(XML format)
> through URL, but I am getting a 413 Http error(Full Head), how can I
> increase buffer size?
>
> regards
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXFRS-Camel-tp5688176.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
> .
>
--
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang