axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thilina Gunarathne" <cset...@gmail.com>
Subject Re: Axis2.1.4 MTOM w/ XmlBeans
Date Tue, 21 Oct 2008 13:21:23 GMT
Hi,

>
> I see that Axis2.1.1 had documentation that supported MTOM with XmlBeans (
> http://ws.apache.org/axis2/1_1/mtom-guide.html#252).  Axis 2.1.4 no
> longers has this documentation.  Is MTOM supported with 2.1.4 and XmlBeans?
>  I am curious since it seems that schema containing binary data works with
> XmlBeans as expected.  The only difference is that the byte array is made
> available and not a data handler.

It was broken and nobody was able/interested in fixing it. Also I cannot
recall the exact error, may be you can find it in the JIRA.
To be honest I'm not a big fan of using XMLBeans for MTOM mainly due to the
following inefficiency in XMLBeans when it comes to binary data handling..
XMLBeans does not support binary, but Axiom supports. So when using XMLBeans
the binary data gets converted to base64 encoded string inside XMLBeans and
then back to binary when writing the message.


> ADB seems to have a "file caching" mechanism described here (
> http://ws.apache.org/axis2/1_3/mtom-guide.html#41).  Is this specific to
> ADB?  Or can this mechanism somehow be applied to XmlBeans?  I'd like to not
> have the entire document loaded into memory and would like to stream to to
> disk if over a certain size using XmlBeans as the data binding library.

File caching is generic to Axis2.. It does not depend on the data binding as
it happens in a much deeper layer.  But I feel that even when file caching
is there, XMLBeans might try to load the content of the attachment in to the
memory.

thanks,
Thilina

>
>
> Thanks,
>
> Alejandro
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thilina Gunarathne  - http://thilinag.blogspot.com

Mime
View raw message