How to turn off Chunked Transfer-Encoding in CXF webservice response ?
Issue
-
We are looking for a way to turn off chunked transfer-encoding in our CXF webservice response. Some clients are unable to handle responses that do not have the Content-Length header. I have tried adding a CXF interceptor to return "Connection: close". This causes the webservice to not use chunked transfer-encoding, but the Content-Length is still not returned.
-
I also tried sending a request using HTTP 1.0 instead of HTTP 1.1. This also caused the response to be sent without chunked transfer-encoding but again the content-length was not returned.
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.