axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r552871 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
Date Tue, 03 Jul 2007 15:13:08 GMT
Author: keithc
Date: Tue Jul  3 08:13:08 2007
New Revision: 552871

URL: http://svn.apache.org/viewvc?view=rev&rev=552871
Log:
Fix for AXIS2-1644.


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java?view=diff&rev=552871&r1=552870&r2=552871
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
Tue Jul  3 08:13:08 2007
@@ -53,6 +53,8 @@
 import org.apache.ws.commons.schema.XmlSchemaParticle;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 import org.apache.ws.commons.schema.XmlSchemaType;
+import org.apache.ws.commons.schema.XmlSchemaAll;
+import org.apache.ws.commons.schema.XmlSchemaGroupBase;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -114,9 +116,9 @@
             if (schemaType instanceof XmlSchemaComplexType) {
                 XmlSchemaComplexType complexType = ((XmlSchemaComplexType) schemaType);
                 XmlSchemaParticle particle = complexType.getParticle();
-                if (particle instanceof XmlSchemaSequence) {
-                    XmlSchemaSequence xmlSchemaSequence = (XmlSchemaSequence) particle;
-                    Iterator iterator = xmlSchemaSequence.getItems().getIterator();
+                if (particle instanceof XmlSchemaSequence || particle instanceof XmlSchemaAll)
{
+                    XmlSchemaGroupBase xmlSchemaGroupBase = (XmlSchemaGroupBase) particle;
+                    Iterator iterator = xmlSchemaGroupBase.getItems().getIterator();
 
                     // now we need to know some information from the binding operation.
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message