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 "Lars Kruse Pedersen (JIRA)" <ji...@apache.org> on 2007/12/17 14:17:43 UTC
[jira] Created: (AXIS2-3409) Using minOccurs="0" on element within
sequence does not accept if element is empty...
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
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
[jira] Assigned: (AXIS2-3409) Using minOccurs="0" on element within
sequence does not accept if element is empty...
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi reassigned AXIS2-3409:
---------------------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> 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
[jira] Resolved: (AXIS2-3409) Using minOccurs="0" on element within
sequence does not accept if element is empty...
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ 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