axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Debashis Roy (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-1710) Problem with multiple occurrances of same element under xs:choice or xs:sequence
Date Thu, 09 Dec 2004 11:35:11 GMT
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


Mime
View raw message