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 ([EMAIL PROTECTED])
512-838-5115  (IBM TL 678-5115)


                                                                       
             Tharindu Mathew                                           
             <[EMAIL PROTECTED]                                         
             m>                                                         To
                                       [email protected]          
             02/29/2008 01:13                                           cc
             AM                                                        
                                                                   Subject
                                       OMSourceElementImpl problem     
             Please respond to                                         
             [EMAIL PROTECTED]                                         
                   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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

<<inline: graycol.gif>>

<<inline: pic01143.gif>>

<<inline: ecblank.gif>>

Reply via email to