axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Closed: (AXIS-1152) Same Element in different "xs:sequence" not allowed in "xs:choice"
Date Sat, 27 Mar 2004 16:07:58 GMT
Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Sat, 27 Mar 2004 8:07 AM

this problem has already been fixed.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-1152

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1152
    Summary: Same Element in different "xs:sequence" not allowed in "xs:choice"
       Type: Bug

     Status: Closed
 Resolution: FIXED

    Project: Axis
 Components: 
             WSDL processing
   Fix Fors:
             current (nightly)
   Versions:
             1.1

   Assignee: 
   Reporter: zenosh

    Created: Thu, 4 Dec 2003 10:54 AM
    Updated: Sat, 27 Mar 2004 8:07 AM
Environment: Operating System: All
Platform: All

Description:
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 .


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message