Author: dims
Date: Wed Aug  9 22:42:12 2006
New Revision: 430259

URL: http://svn.apache.org/viewvc?rev=430259&view=rev
Log:
Fix for AXIS2-998 - WSDL2Java creates invalid databinding code for choice 
elements with maxOccurs=unbounded

Modified:
    
webservices/commons/trunk/modules/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java

Modified: 
webservices/commons/trunk/modules/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java?rev=430259&r1=430258&r2=430259&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
 (original)
+++ 
webservices/commons/trunk/modules/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
 Wed Aug  9 22:42:12 2006
@@ -1110,6 +1110,9 @@
         if (choiceEl.hasAttribute("id"))
             choice.id = choiceEl.getAttribute("id");
 
+        choice.minOccurs = getMinOccurs(choiceEl);
+        choice.maxOccurs = getMaxOccurs(choiceEl);
+        
         for (Element el = XDOMUtil.getFirstChildElementNS(choiceEl,
                 XmlSchema.SCHEMA_NS)
                 ; el != null;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to