axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject svn commit: r489231 - /webservices/axis/branches/AXIS_1_4_FINAL/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java
Date Thu, 21 Dec 2006 00:25:06 GMT
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


Mime
View raw message