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 "Debashis Roy (JIRA)" <ax...@ws.apache.org> on 2004/12/09 12:35:11 UTC

[jira] Created: (AXIS-1710) Problem with multiple occurrances of same element under xs:choice or xs:sequence

Problem with multiple occurrances of same element under xs:choice or xs:sequence
--------------------------------------------------------------------------------

         Key: AXIS-1710
         URL: http://nagoya.apache.org/jira/browse/AXIS-1710
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.1    
 Environment: Windows 2000 + JDK 140
    Reporter: Debashis Roy
    Priority: Critical


If an xs:sequence contains multiple occurances of type xs:any or if two choice elements contain the element of same name the java code generated repeats same data members and getter/setter methods, which causes compilation failure.

Example schema-1:
<complexType name="PGPDataType"> 
  <choice>
    <sequence>
      <element name="PGPKeyID" type="base64Binary"/> 
      <element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/> 
      <any namespace="##other" processContents="lax" minOccurs="0"
       maxOccurs="unbounded"/>
    </sequence>
    <sequence>
      <element name="PGPKeyPacket" type="base64Binary"/> 
      <any namespace="##other" processContents="lax" minOccurs="0"
       maxOccurs="unbounded"/>
    </sequence>
  </choice>
</complexType>

Example schema-2:
 <xs:complexType name="PolicyAttachmentType">
  <xs:sequence>
   <xs:element ref="wsp:AppliesTo"/>
   <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
   <xs:choice maxOccurs="unbounded">
    <xs:element ref="wsp:Policy"/>
    <xs:element ref="wsp:PolicyReference"/>
   </xs:choice>
   <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:anyAttribute namespace="##any" processContents="lax"/>
 </xs:complexType>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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