axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksander Slominski <>
Subject Re: [Axis2] Using XMLBeans with OM
Date Thu, 10 Mar 2005 17:48:53 GMT
so why not to change code in AXIS2 OM to read from wherever stax curosr 
(reader) is positioned?


Dasarath Weeratunge wrote:

>The way XMLStreamReader is implemented in OM and
>XMLBeans is different. When you call
>newXMLStreamReader on an XMLBeans generated class, the
>returned reader is positioned on the element: if u
>call next u get the local name. However, when you call
>getPullParser on an OMElement you must call next once
>before you can call getName. So at present the
>following code won't work.
>public void submitPurchaseOrder(PurchaseOrderDocument
>doc) throws Exception {
>		SOAPEnvelope env = factory.getDefaultEnvelope();
>		StAXOMBuilder builder = new
>StAXOMBuilder(doc.newXMLStreamReader(),	true);
>Due to the same reason the following is also not
>public OMElement submitPurchaseOrderWrapper(OMElement
>		try {
>Do you Yahoo!? 
>Yahoo! Small Business - Try our new resources site!

The best way to predict the future is to invent it - Alan Kay

View raw message