minOccurs="0" is ignored for xs:any when using XMLBeans
-------------------------------------------------------

                 Key: AXIS2-3599
                 URL: https://issues.apache.org/jira/browse/AXIS2-3599
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding, wsdl
    Affects Versions: nightly
            Reporter: Stefan Lischke
            Priority: Critical
             Fix For: 1.4


I have a strange behavior, i'm using XMLBeans as databinding. The 
codegeneration seems to ignore minOccurs="0" when using xs:any.
following part of my xsd:

<xs:element name="CAdata" minOccurs="0" maxOccurs="1" >
  <xs:complexType mixed="true">
    <xs:sequence>
      <xs:any namespace="##any" processContents="lax" minOccurs="0" 
maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="CAname" type="xs:string" use="required"/>
  </xs:complexType> 
</xs:element>

and xml:

<X>
...
  <CAdata CAname="testCA"/>
</X>

If i call .validate() to validate against the schema i get 

error: cvc-complex-type.2.4d: Expected element(s) in element [EMAIL 
PROTECTED]://www

This bug seems only in combination of axis2 and xmlbeans

when using plain xmlbeans the verification is OK.

Any ideas?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to