You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by gd...@apache.org on 2006/12/21 01:25:06 UTC

svn commit: r489231 - /webservices/axis/branches/AXIS_1_4_FINAL/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java

Author: gdaniels
Date: Wed Dec 20 16:25:05 2006
New Revision: 489231

URL: http://svn.apache.org/viewvc?view=rev&rev=489231
Log:
Make sure itemQName gets set correctly when dealing with element references in a collection type, a la:

            <xs:complexType name="Components">
               <xs:sequence>
                  <xs:element maxOccurs="unbounded" minOccurs="0" ref="component:OLComponent"/>
               </xs:sequence>
            </xs:complexType>

Modified:
    webservices/axis/branches/AXIS_1_4_FINAL/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java

Modified: webservices/axis/branches/AXIS_1_4_FINAL/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis/branches/AXIS_1_4_FINAL/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java?view=diff&rev=489231&r1=489230&r2=489231
==============================================================================
--- webservices/axis/branches/AXIS_1_4_FINAL/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java (original)
+++ webservices/axis/branches/AXIS_1_4_FINAL/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java Wed Dec 20 16:25:05 2006
@@ -1433,6 +1433,13 @@
                                  namespace = Utils.getScopedAttribute(node, "targetNamespace");
                             }
                             itemQName.value = new QName(namespace, name);
+                        } else {
+                            String ref = Utils.getAttribute(node, "ref");
+                            if (ref != null) {
+                                itemQName.value =
+                                        Utils.getQNameFromPrefixedName(node,
+                                                                       ref);
+                            }
                         }
                     }
                     return componentTypeQName;



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