On Wed December 23 2009 10:50:11 am Nathaniel Auvil wrote: > Is there a way to make CXF calculate and set the Content-Length on every > call? I generated my soap client with CXF and sometimes i am getting a 411 > error back from the server i am calling because the content-length was not > set. When i cut and paste the soap body dumped from my log interceptor and > try the same request via SOAP UI it works as it is setting the > Content-Length >
See: http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html and the section entitled "A Note About Chunking" and the "AllowChunking" setting. -- Daniel Kulp [email protected] http://www.dankulp.com/blog
