axis-java-dev mailing list archives

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

Tharindu,

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 ?

Thanks

Rich Scheuerle
IBM Web Services
Apache Axis2 (scheu@apache.org)
512-838-5115  (IBM TL 678-5115)


                                                                           
             Tharindu Mathew                                               
             <tharindu@wso2.co                                             
             m>                                                         To 
                                       axis-dev@ws.apache.org              
             02/29/2008 01:13                                           cc 
             AM                                                            
                                                                   Subject 
                                       OMSourceElementImpl problem         
             Please respond to                                             
             axis-dev@ws.apach                                             
                   e.org                                                   
                                                                           
                                                                           
                                                                           




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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message