How to disable chunked-encoding in a JBossWS client
Issue
- How can we disable chunked encoding in JBossWS?
- There appears to be no way of controlling the chunked setting when web services are called via SAAJ.
- I get an HTTP 500 error from an IIS server using a JBossWS native client, but I don't get an error when using a Sun Metro client or SoapUI.
- Web service invocation giving:
org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Invalid HTTP server response [411] - Length Required.
Response: Length Required/411.
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
- Web service invocation giving errors:
Caused by: org.jboss.ws.WSException: Invalid HTTP server response [404] - Not Found
at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:75)
at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:608)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:402)
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 4.3
- 5.x
- 6.x
- JBossWS Native
- JBossWS CXF
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
