If you create a OM element as follows by providing a Stream, the
stream is not really read
unless you accsess the OMElement. So If you create a OM element like
follwoing and use it in Axis2 .. it should do streaming
File file= new File("line-item.xml");
FileInputStream fis= new FileInputStream(file);
XMLInputFactory xif= XMLInputFactory.newInstance();
XMLStreamReader reader= xif.createXMLStreamReader(fis);
StAXOMBuilder builder= new StAXOMBuilder(reader);
OMElement lineItem= builder.getDocumentElement();
See http://www-128.ibm.com/developerworks/library/x-axiom/ for more info
--Srinath