axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-3599) minOccurs="0" is ignored for xs:any when using XMLBeans
Date Tue, 25 Mar 2008 13:21:25 GMT

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

Davanum Srinivas updated AXIS2-3599:
------------------------------------

    Fix Version/s:     (was: 1.4)

won't fix for 1.4 unless someone has a patch.

thanks,
dims

> 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
>
> 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


Mime
View raw message