Chunking can be turned off by tuning the org.apache.axis2.transport.http.HTTPConstants.CHUNKED constant.
Options options = new org.apache.axis2.client.Options.Options(); ... options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKE D, false); ServiceClient client = stub._getServiceClient(); client.setOptions(options); You can check out http://wso2.org/library/230 for all available parameters dealing with various aspects of Axis2. Believe me, Axis2 is as flexible as you want it to be. :-) -richard ________________________________ From: Erwin Reinhoud [mailto:[email protected]] Sent: April 22, 2009 6:37 AM To: [email protected] Subject: RE: Getting the Content Lenth of The SOAP Response Hello Sriram, Okay, that axis2 doesnt set content header when not applying chunking is new to me. In my experience it only does not set it when applying chunking. If you dont need chunking you might want to use http 1.0. http://www.archivum.info/[email protected]/2007-08/msg00343.html Regards, Erwin ________________________________ Van: sri ram [mailto:[email protected]] Verzonden: woensdag 22 april 2009 11:10 Aan: [email protected] Onderwerp: RE: Getting the Content Lenth of The SOAP Response Hi Erwin, We don't need chunking ,thats the reason we need Content Length header . Regards, Sriram --- On Wed, 22/4/09, Erwin Reinhoud <[email protected]> wrote: From: Erwin Reinhoud <[email protected]> Subject: RE: Getting the Content Lenth of The SOAP Response To: [email protected] Date: Wednesday, 22 April, 2009, 1:26 PM Do you need to apply chunking? I think if you dont the Content length is added. regards, Erwin ________________________________ Van: sri ram [mailto:[email protected]] Verzonden: woensdag 22 april 2009 8:46 Aan: [email protected] Onderwerp: Re: Getting the Content Lenth of The SOAP Response Hi All, In Axis 2.1.4 ,the axis servlet sets some header by default but doesn't set the Content Length header which plays a major part in chunking a response. I just need to know how to include this header in my response . Should I Use MessageReceiver Class ? Or Are there some other Class that can manipulate the response to add my own headers Please let me know its kind of important. --- On Tue, 14/4/09, sri ram <[email protected]> wrote: From: sri ram <[email protected]> Subject: Re: Getting the Content Lenth of The SOAP Response To: [email protected] Date: Tuesday, 14 April, 2009, 5:59 PM Can someone immediately reply for this query.If needed I can provide necessary data.Its urgent. --- On Tue, 14/4/09, sri ram <[email protected]> wrote: From: sri ram <[email protected]> Subject: Getting the Content Lenth of The SOAP Response To: [email protected] Date: Tuesday, 14 April, 2009, 3:06 PM Hi all, (Axis 2.14.) In my scenario we need a header mentioning the Content Length of the SOAP response and we extend AxisServlet ,and do the super.doPost(request,response). Can some body let me know how to extract the response size . Thanks, Sriram ________________________________ Connect with friends all over the world. Get Yahoo! India Messenger. <http://in.rd.yahoo.com/tagline_messenger_1/*http:/in.messenger.yahoo.co m/?wm=n/> ________________________________ Connect with friends all over the world. Get Yahoo! India Messenger. <http://in.rd.yahoo.com/tagline_messenger_1/*http:/in.messenger.yahoo.co m/?wm=n/> ________________________________ >From Chandigarh to Chennai - find friends all over India. Click here. <http://in.rd.yahoo.com/tagline_groups_10/*http:/in.promos.yahoo.com/gro ups/citygroups/> ________________________________ >From Chandigarh to Chennai - find friends all over India. Click here. <http://in.rd.yahoo.com/tagline_groups_10/*http:/in.promos.yahoo.com/gro ups/citygroups/>
