On Thu May 28 2009 2:17:22 pm CA-Dave wrote:
> Hi,
>
> I've written a webservice client program using CXF 2.2.1. The web service
> implements WS security and the client seems to be working fine except when
> I need to turn on/off chunking using http-conf:conduit properties. It
> appears that chunking is always turned-off. None of the properties
> specified within the http-conf element kicks in. I added the
> http:authorization without any luck.

Can you create a sample and attach to a JIRA?    Mostly concerned about the 
authorization.

Regarding the chunking:  even if chunking is turned on (which is the default), 
if the message is less than 4K (I think, would need to look at the code to 
refresh my memory) which is the size of a "chunk", then it's not sent in 
chunked form.   The main reason is that in chunked form with the 
HTTPUrlConnection, a minimum of 3 network packets are sent.  One for the 
headers + the first chunk size, the chunk itself, and finally the "0" to mark 
the end.      In non-chunked, the HTTPUrlConnection is a bit smarter and uses 
less network packets.   However, once around 4K is hit, the benefits of the 
chunking override the packet issue.

Dan


> Any suggestions or pointers will be greatly appreciated!
>
> Thanks,
> Dave
> http://www.nabble.com/file/p23767127/ClientAppContext2.xml
> ClientAppContext2.xml

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to