You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sc...@apache.org on 2007/02/22 16:25:17 UTC
svn commit: r510548 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/XMLSpineImpl.java
Author: scheu
Date: Thu Feb 22 07:25:15 2007
New Revision: 510548
URL: http://svn.apache.org/viewvc?view=rev&rev=510548
Log:
AXIS2-2217
Contributor:Rich Scheuerle
Quick Fix to JAXWS Spine code
Modified:
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/XMLSpineImpl.java
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/XMLSpineImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/XMLSpineImpl.java?view=diff&rev=510548&r1=510547&r2=510548
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/XMLSpineImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/impl/XMLSpineImpl.java Thu Feb 22 07:25:15 2007
@@ -29,6 +29,7 @@
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMNode;
+import org.apache.axiom.om.impl.OMContainerEx;
import org.apache.axiom.om.impl.builder.StAXOMBuilder;
import org.apache.axiom.om.impl.llom.OMElementImpl;
import org.apache.axiom.om.impl.llom.OMSourcedElementImpl;
@@ -485,11 +486,12 @@
// TODO It would also be nice to close the input XMLStreamReader connected
// to the builder.
if (setComplete) {
- OMNode o = om;
- while (o != null && o instanceof OMElementImpl) {
- ((OMElementImpl)o).setComplete(true);
- if (o.getParent() instanceof OMElement) {
- o = (OMNode) o.getParent();
+ OMContainer o = om;
+ while (o != null && o instanceof OMContainerEx) {
+ ((OMContainerEx)o).setComplete(true);
+ if ((o instanceof OMNode) &&
+ (((OMNode) o).getParent()) instanceof OMContainer) {
+ o = ((OMNode) o).getParent();
} else {
o = null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org