You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Manjula Peiris <ma...@wso2.com> on 2008/06/09 12:46:58 UTC

Sending attachments as chunked http requests

Hi devs,

As I understood after going through Axis2/C transport and Axiom stuff
following things need to be done in order to do $subject.

1. Fix problems in the http transport when sending data as chunked.
Currently it is sending the data as one chunk and in the attachment case
data is missing.

2. Change the logic in data_handler, mime_output in order to prevent
loading the attachment to the memory.

If you have any ideas on how to do above it will really speed up the
development.

Thanks,
-Manjula.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: Sending attachments as chunked http requests

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Manjula Peiris wrote:
> On Mon, 2008-06-09 at 20:26 +0530, Samisa Abeysinghe wrote:
>   
>> Manjula Peiris wrote:
>>     
>>> Hi devs,
>>>
>>> As I understood after going through Axis2/C transport and Axiom stuff
>>> following things need to be done in order to do $subject.
>>>
>>> 1. Fix problems in the http transport when sending data as chunked.
>>> Currently it is sending the data as one chunk and in the attachment case
>>> data is missing.
>>>       
>
> I was able to fix sending the message as more than one chunk. Will try
> to find why some part of the attachment is missing.
>
>   
>>>   
>>>       
>> You mean with the client transport? How about with libcurl?
>>     
>
> Will try with libcurl.
>   

If it works with libculr, then we do not want to change the current 
transport. We can ask the users to use libcurl.

>   
>>> 2. Change the logic in data_handler, mime_output in order to prevent
>>> loading the attachment to the memory.
>>>   
>>>       
>> +1. I think, like in the receive case, you can provide a set of 
>> callbacks here.
>>     
>
> This may require changing the current data_handler API in Axiom. Rather
> than changing the API I will try to do this API additions.
>   

+1 for adding to current API.

Samisa...

>
>
>   
>> Thanks,
>> Samisa...
>>
>>     
>>> If you have any ideas on how to do above it will really speed up the
>>> development.
>>>
>>> Thanks,
>>> -Manjula.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>>>   
>>> ------------------------------------------------------------------------
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG. 
>>> Version: 8.0.100 / Virus Database: 270.0.0/1489 - Release Date: 6/7/2008 11:17 AM
>>>   
>>>       
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 8.0.100 / Virus Database: 270.0.0/1489 - Release Date: 6/7/2008 11:17 AM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: Sending attachments as chunked http requests

Posted by Manjula Peiris <ma...@wso2.com>.
On Mon, 2008-06-09 at 20:26 +0530, Samisa Abeysinghe wrote:
> Manjula Peiris wrote:
> > Hi devs,
> >
> > As I understood after going through Axis2/C transport and Axiom stuff
> > following things need to be done in order to do $subject.
> >
> > 1. Fix problems in the http transport when sending data as chunked.
> > Currently it is sending the data as one chunk and in the attachment case
> > data is missing.

I was able to fix sending the message as more than one chunk. Will try
to find why some part of the attachment is missing.

> >   
> 
> You mean with the client transport? How about with libcurl?

Will try with libcurl.

> 
> > 2. Change the logic in data_handler, mime_output in order to prevent
> > loading the attachment to the memory.
> >   
> 
> +1. I think, like in the receive case, you can provide a set of 
> callbacks here.

This may require changing the current data_handler API in Axiom. Rather
than changing the API I will try to do this API additions.



> 
> Thanks,
> Samisa...
> 
> > If you have any ideas on how to do above it will really speed up the
> > development.
> >
> > Thanks,
> > -Manjula.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-c-dev-help@ws.apache.org
> >   
> > ------------------------------------------------------------------------
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG. 
> > Version: 8.0.100 / Virus Database: 270.0.0/1489 - Release Date: 6/7/2008 11:17 AM
> >   
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: Sending attachments as chunked http requests

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Manjula Peiris wrote:
> Hi devs,
>
> As I understood after going through Axis2/C transport and Axiom stuff
> following things need to be done in order to do $subject.
>
> 1. Fix problems in the http transport when sending data as chunked.
> Currently it is sending the data as one chunk and in the attachment case
> data is missing.
>   

You mean with the client transport? How about with libcurl?

> 2. Change the logic in data_handler, mime_output in order to prevent
> loading the attachment to the memory.
>   

+1. I think, like in the receive case, you can provide a set of 
callbacks here.

Thanks,
Samisa...

> If you have any ideas on how to do above it will really speed up the
> development.
>
> Thanks,
> -Manjula.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 8.0.100 / Virus Database: 270.0.0/1489 - Release Date: 6/7/2008 11:17 AM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org