[jboss-user] [JBoss Web Services] New message: "Re: org.jboss.ws.WSException: Invalid HTTP server response [411] - Length Required"
Michael Eibeck
do-not-reply at jboss.com
Thu Jan 21 06:53:20 EST 2010
User development,
A new message was posted in the thread "org.jboss.ws.WSException: Invalid HTTP server response [411] - Length Required":
http://community.jboss.org/message/521363#521363
Author : Michael Eibeck
Profile : http://community.jboss.org/people/skymic
Message:
--------------------------------------------------------------
Problem solved.
The remote WSEndpoint did not like the HTTP Chunking feature activated.
Now I has to disable this feature for my WS client.
This can be done as follows:
QName qname = new QName(namespace,"TapasAuthentificationServiceV1.0");
String className = System.getProperty("xxxx.service.factory.auth", xxxxAuthentificationServiceV10_Service.class.getName());
xxxxAuthentificationServiceV10_Service service = (xxxxAuthentificationServiceV10_Service)getServiceInstance(className, serviceUrl, qname);
// switch off Chunking feature of HPPP1.1
ChunkedEncodingFeature feature = new ChunkedEncodingFeature(false);
return service.getxxxxAuthentificationServiceV10SOAPhttp(feature);
The JBoss version which I used is JBoss-5.1.0-GA. This version comes with the JBossWS 3.1.0 stack.
The class ChunkedEncodingFeature exists only in JBossWS 3.2.0 stacks and higher.
I has to download JBossWS 3.2.0 separately and install it for JBoss-5.1.0-GA which worked fine (follow the Installation guide for JBossWS).
When I deployed and run my application the exception was gone.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521363#521363
More information about the jboss-user
mailing list