You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by di...@apache.org on 2006/08/10 07:42:12 UTC
svn commit: r430259 -
/webservices/commons/trunk/modules/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org