axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25195] New: - Same Element in different "xs:sequence" not allowed in "xs:choice"
Date Thu, 04 Dec 2003 10:54:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25195>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25195

Same Element in different "xs:sequence" not allowed in "xs:choice"

           Summary: Same Element in different "xs:sequence" not allowed in
                    "xs:choice"
           Product: Axis
           Version: 1.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: zpatel@baan.com


See the following WSDL snippet(For full WSDL see the attachments)
***************
<xs:complexType name="SyncAllResponseUnitsZenosh">
<xs:sequence>
<xs:choice>
   <xs:sequence>
      <xs:element minOccurs="0" name="PreviousValues"            
type="bo:PreviousValuesMain"/>
      <xs:group ref="AVMain"/>
   </xs:sequence>
   <xs:sequence>
      <xs:element name="PreviousValues" type="bo:PreviousValuesMain"/>
      <xs:group ref="AVMain"/>
   </xs:sequence>
   <xs:sequence>
      <xs:element name="PreviousValues" type="bo:PreviousValuesMain"/>
   </xs:sequence>
</xs:choice>
</xs:sequence>
............
</xs:complexType>

*****end**********

If you see - the tag "PreviousValues" is repeated thrice in the "xs:choice" , 
but all 3 occurances are in different sequences.So its a valid xsd.

I generate the type safe proxies of the wsdl using "java 
org.apache.axis.wsdl.WSDL2Java". The proxies are generated without error.

When I try to compile the java files - i get the following error "Redeclaration 
of member "PreviousValues" . This error comes due to the fact that 
the "PreviousValues" is declared thrice in 
the "SyncAllResponseUnitsZenosh" , "SyncChangesResponseUnitsZenosh" , "SyncOneRe
sponseUnitsZenosh" classes . 

Any more information needed - Please let me know on zpatel@baan.com .

Mime
View raw message