You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2008/09/01 04:01:44 UTC

[jira] Assigned: (AXIS2-3599) minOccurs="0" is ignored for xs:any when using XMLBeans

     [ https://issues.apache.org/jira/browse/AXIS2-3599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-3599:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>
> 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 CAdata@http://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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org