There are already problems with ambiguity in the original schema.
See output of IBM Schema Quality Checker 2.1.1 below.
I suggest to correct those first and then use inoconvert and try to define the output schema afterwards.
I took a quick look at the schema and in general these ambiguity problems can be solved by moving the sequence within the choice one level up, deleting the original choice and make those former choice elements in the sequence, who did not appear within the choice, optional (minOccurs = 0).
Tricky, I agree, so here is one example:
xs:choice
<xs:element ref = “DBRIndicatorInEntrepriseCadreMap”></xs:element>
xs:sequence
<xs:element ref = “DBRIndicatorInEntrepriseCadreMap”></xs:element>
<xs:element ref = “LegalBasis”></xs:element>
</xs:sequence>
</xs:choice>
becomes
xs:sequence
<xs:element ref = “DBRIndicatorInEntrepriseCadreMap”></xs:element>
<xs:element ref = “LegalBasis” minOccurs=“0”></xs:element>
</xs:sequence>
Best regards,
Peter
14:24
Initializing Schema Quality Checker. Please wait …
SchemaQualityChecker has been initialized
DRS.xml (file 1 of 1) now being read …
ERROR
file = file:C:/temp/forum/DRS.xml line 1437 column 19
SEVERITY: 1
ERROR TYPE: 2
MESSAGE
Ambiguous content model : the following particles overlap :
<xs:element block=“” maxOccurs=“28” minOccurs=“28” ref=“IndicationDaysAndHours”/>
,
<xs:element block=“” maxOccurs=“28” minOccurs=“28” ref=“IndicationDaysAndHours”/>
.
------------------------------------------------------------------------
ERROR
file = file:C:/temp/forum/DRS.xml line 1451 column 19
SEVERITY: 1
ERROR TYPE: 2
MESSAGE
Ambiguous content model : the following particles overlap :
<xs:element block=“” maxOccurs=“1” minOccurs=“1” ref=“MonthlyTheoreticalSalaryAmount”/>
,
<xs:element block=“” maxOccurs=“1” minOccurs=“1” ref=“MonthlyTheoreticalSalaryAmount”/>
.
------------------------------------------------------------------------
ERROR
file = file:C:/temp/forum/DRS.xml line 1460 column 19
SEVERITY: 1
ERROR TYPE: 2
MESSAGE
Ambiguous content model : the following particles overlap :
<xs:element block=“” maxOccurs=“1” minOccurs=“1” ref=“WorkPlaceIndicator”/>
,
<xs:element block=“” maxOccurs=“1” minOccurs=“1” ref=“WorkPlaceIndicator”/>
.
------------------------------------------------------------------------
ERROR
file = file:C:/temp/forum/DRS.xml line 391 column 42
SEVERITY: 1
ERROR TYPE: 2
MESSAGE
“1883-01-01” which was specified for minInclusive value, is not of the type : simpleType http://www.w3.org/2001/XMLSchema:date.
------------------------------------------------------------------------
ERROR
file = file:C:/temp/forum/DRS.xml line 871 column 42
SEVERITY: 1
ERROR TYPE: 2
MESSAGE
“2003-01-01” which was specified for minInclusive value, is not of the type : simpleType http://www.w3.org/2001/XMLSchema:date.
------------------------------------------------------------------------
14:25
#webMethods#API-Management#Tamino