i'll walk you thru it...let's leave this as-is for now. 

-- dims

On 8/13/05, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> oooops..To be honest I'm not much familiar with this http code. Also I can't
> refer to the code at this moment cause i'm using a diffrent OS (:D) to
> connect to net through my mode... 
> Is this writeBytes is something which deals only with Characters??? If so
> aren't there any other methods that we can use..... 
>   
> Thanks & Regards, 
> ~Thilina
> 
>  
>  
> On 8/13/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote: 
> > Yes, we are calling writeBytes which computes the length of *JUST* the
> > root mime part. So the problem is in our code :) 
> > 
> > -- dims
> > 
> > On 8/13/05, Thilina Gunarathne <[EMAIL PROTECTED]> wrote:
> > > IMHO it's If it's sending the wrong size it should be a bug in Commons
> > > HttpClient. It's suppose to compute the content-length regardless
> whether 
> > > the data are binary, text , MIME or anything....
> > >
> > > Thanks,
> > > ~Thilina
> > >
> > >
> > > On 8/13/05, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
> > > > Author: dims
> > > > Date: Fri Aug 12 13:53:43 2005
> > > > New Revision: 232390
> > > >
> > > > URL:
> http://svn.apache.org/viewcvs?rev=232390&view=rev
> > > > Log:
> > > > don't compute the size if we are using mtom (use chunking). This is
> better
> > > than sending the wrong size.
> > > >
> > > > 
> > > > Modified:
> > > >
> > >
> webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
> > > >
> > > > Modified:
> > >
> webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
> > > > URL:
> > >
> http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java?rev=232390&r1=232389&r2=232390&view=diff
> > > >
> > >
> ==============================================================================
> > > > ---
> > >
> webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
> > > (original)
> > > > +++
> > >
> webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
> > > Fri Aug 12 13:53:43 2005
> > > > @@ -271,7 +271,7 @@
> > > >
> > > >         public long getContentLength() {
> > > >             try {
> > > > -                if (chuncked) {
> > > > +                if (chuncked || doingMTOM) { 
> > > >                     return -1;
> > > >                 } else {
> > > >                     if (bytes == null) {
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > "May the SourcE be with u" 
> > > http://www.bloglines.com/blog/thilina
> > 
> > 
> > --
> > Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform
> > 
> 
> 
> 
> -- 
> "May the SourcE be with u" 
> http://www.bloglines.com/blog/thilina 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

Reply via email to