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 "Stefan Lischke (JIRA)" <ji...@apache.org> on 2008/03/12 19:28:46 UTC

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

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


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

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ 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