axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From R J Scheuerle Jr <>
Subject Re: OMSourceElementImpl problem
Date Fri, 29 Feb 2008 20:14:18 GMT


An OMSourcedElement is a representation of an OMElement.
Therefore the backing data should be xml data...and your implementation of
OMDataSource is expected to produce an XMLStreamReader.

Can you describe why you want to put non xml data in an Axiom tree ?


Rich Scheuerle
IBM Web Services
Apache Axis2 (
512-838-5115  (IBM TL 678-5115)

             Tharindu Mathew                                               
             m>                                                         To 
             02/29/2008 01:13                                           cc 
                                       OMSourceElementImpl problem         
             Please respond to                                             

I'm trying to use the OMSourceElementImpl by attaching a OMDataSource to
transfer some binary non xml data.

The problem occurs when toString() method of OMElementImpl is called
which in turns tries to retrieve the XML reader through the getReader()
of the OMDataSource is called which returns null cause I can't provide
an XML reader for non xml binary data, there null is returned.

Is there a way to prevent getReader() of the OMDataSource being called,
and preventing the null exception.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message