axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim James McConechy" <TimJames.McCone...@infor.com>
Subject RE: Can't Change chunking...HTTP/1.0 does not support chunk encoding
Date Tue, 24 Jun 2008 15:58:18 GMT
Hi,
The response request only says:

TCPIP Mode:

Request:
POST /FsSvcCore/DataObjects/WsItem.asmx HTTP/1.0

Is there other ways to disable chunking?

Thanks
Tim


-----Original Message-----
From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
Sent: Tue 6/24/2008 1:20 AM
To: axis-user@ws.apache.org
Subject: Re: Can't Change chunking...HTTP/1.0 does not support chunk encoding
 


On Tue, Jun 24, 2008 at 1:03 AM, Tim James McConechy <TimJames.McConechy@infor.com>
wrote:


	Hi,

	 

	I tried to disable chunking in the axis2.xml file as well as use the following code:

	 

	if (httpChunking.equals("false"))

	WebServiceManager.formulaServiceObject._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,
false);

	if (httpVersion.equals("1.0"))

	      WebServiceManager.formulaServiceObject._getServiceClient().getOptions().setProperty(HTTPConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10);

	                  

	However, This solves chunk issues on the fetch but now on another web service I get the following
error:

	 

	15:29:13,424 ERROR http-8484-Processor19 [CUXUtils] HTTP/1.0 does not support chunk encoding

	org.apache.axis2.AxisFault: HTTP/1.0 does not support chunk encoding

	      at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)

	      at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)

	 

	..

	 

	      at java.lang.Thread.run(Unknown Source)

	Caused by: org.apache.commons.httpclient.ProtocolException: HTTP/1.0 does not support chunk
encoding

	      at org.apache.commons.httpclient.methods.EntityEnclosingMethod.addContentLengthRequestHeader(EntityEnclosingMethod.java:411)

	      at org.apache.commons.httpclient.methods.EntityEnclosingMethod.addRequestHeaders(EntityEnclosingMethod.java:374)

	 

	 

	Is there somewhere else or something else I need to set? It would appear that chunking is
not


try to check the actual request send using tcpmon[1]

thanks,
Amila.

[1]http://ws.apache.org/commons/tcpmon/ 


	disabled.

	 

	Any ideas?

	 

	Tim McConechy | Principal Software Engineer | Infor | Office: 610.407.8191 | Mobile: 610.306.6603
| tim.mcconechy@infor.com

	 




-- 
Amila Suriarachchi,
WSO2 Inc. 


Mime
View raw message