You are viewing a plain text version of this content. The canonical link for it is here.
Posted to savan-dev@ws.apache.org by "Tao Gui (JIRA)" <ji...@apache.org> on 2010/05/09 23:46:52 UTC

[jira] Updated: (AXIS2-4707) Axis2 cannot transfer file from server to client (downloading) with MTOM

     [ https://issues.apache.org/jira/browse/AXIS2-4707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tao Gui updated AXIS2-4707:
---------------------------

    Attachment: mtom.zip
                mtomdownload.txt
                mtomupload.txt

> Axis2 cannot transfer file from server to client (downloading) with MTOM
> ------------------------------------------------------------------------
>
>                 Key: AXIS2-4707
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4707
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.1
>         Environment: code is tested on the Axis2 web server and Jboss 5.1. 
>            Reporter: Tao Gui
>         Attachments: mtom.zip, mtomdownload.txt, mtomupload.txt
>
>
> Hi, Axis2 Dev Team,
> Axis2 cannot  transfer file from server to client (downloading) with MTOM for me. The transfer also fails if the file is bigger than 10MB.
> Axis2 has a sample code (\mtom) to transfer a file from client to server (uploading, called attachement in the code) with MTOM. It works for me and can transfer file up to 10GB. I added the function to download the file (from server to client, please see the attached code.). Using TCPMON, i see the data being downloaded is "Content-Transfer-Encoding: 8bit" (please see attached mtomdownload.txt), not "binary" as for the data uploaded (please see attached mtomupload.txt). If MTOM is working, it should be "binary". When the file being downloaded is bigger than 10MB, client will throw OutOfMemery.
> I tested the code on the Axis2 web server and Jboss 5.1.
> I also tried Thilina's code to download with MTOM , http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html. The data is not downloaded as binary either.
> Furthermore, the attachment caching only works for me on the server side. Configuring attachment caching on the client (setting setProperty(Constants.Configuration.CACHE_ATTACHMENTS, Constants.VALUE_TRUE) and setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR, "c:\\temp\\axistmp2\\")) doesn't work and doesn't have any effect (no cache file generated) for me either.
> Thanks,
> Tao

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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