axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3409) Using minOccurs="0" on element within sequence does not accept if element is empty...
Date Wed, 19 Dec 2007 10:43:43 GMT

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

Amila Chinthaka Suriarachchi resolved AXIS2-3409.
-------------------------------------------------

    Resolution: Fixed

fixed the issue

> Using minOccurs="0" on element within sequence does not accept if element is empty...
> -------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3409
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3409
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.3
>         Environment: Windows XP,
>            Reporter: Lars Kruse Pedersen
>            Assignee: Amila Chinthaka Suriarachchi
>
> We have the following XSD...
> ----------------- snippet start -----------------------
> <xs:complexType name="AngivelseAftaleForholdKontroller_OType">
>   <xs:sequence>
>     <xs:element ref="fase2:Kontekst" /> 
>       <xs:sequence>
>          <xs:element name="VirksomhedSamling" minOccurs="0">
>            <xs:complexType>
>              <xs:sequence>
>                .
>                . more stuff
>                .
>             </xs:sequence>
>           </xs:complexType>
>        </xs:element>
>       </xs:sequence>
>     </xs:sequence>
>   </xs:complexType>
> ----------------- snippet end -----------------------
> When we receive XML contents that has only the Kontekst element, but no VirksomhedSamling
element, ADB throws an exception because it expects the VirksomhedSamling element, but according
to W3 it is perfectly legal to have a minOccurs="0" on an element inside a sequence!

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