You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Alejandro Calbazana <al...@calbazana.com> on 2008/10/20 22:38:12 UTC

Axis2.1.4 MTOM w/ XmlBeans

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. 

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.

Thanks,

Alejandro

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


Re: Axis2.1.4 MTOM w/ XmlBeans

Posted by Thilina Gunarathne <cs...@gmail.com>.
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