tomcat6 - content-length header in response not present despite commenting transfer-encoding in axis2.xml -
i have axis2 service running on tomcat 6.0.18 axis2 1.3 version.
i disabled chunking commenting transfer-encoding element , changed http 1.0 shown below:
<transportsender name="http" class="org.apache.axis2.transport.http.commonshttptransportsender"> <parameter name="protocol">http/1.0</parameter> <!-- <parameter name="transfer-encoding">chunked</parameter> -->
i implemented lifecycle interface in service implementation class.
here init()
method code:
public void init(servicecontext arg0) throws axisfault { // todo auto-generated method stub arg0.getconfigurationcontext().setproperty(httpconstants.header_transfer_encoding_chunked,boolean.false); arg0.getconfigurationcontext().setproperty(httpconstants.http_protocol_version, httpconstants.header_protocol_10); messagecontext responsemessagecontext = messagecontext.getcurrentmessagecontext().getoperationcontext().getmessagecontext( wsdlconstants.message_label_out_value); responsemessagecontext.setproperty(httpconstants.header_transfer_encoding_chunked,boolean.false); responsemessagecontext.setproperty(httpconstants.http_protocol_version, httpconstants.header_protocol_10);
despite having these changes, still don't see content-length in http response header when called service. ideas?
Comments
Post a Comment