axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Created: (AXIS-1466) Error with array of objects with <xsd:extension base="xsd:string"> in definition
Date Tue, 20 Jul 2004 13:37:39 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1466

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1466
    Summary: Error with array of objects with <xsd:extension base="xsd:string"> in definition
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
 Components: 
             Serialization/Deserialization
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: An Tin

    Created: Tue, 20 Jul 2004 6:37 AM
    Updated: Tue, 20 Jul 2004 6:37 AM
Environment: java 1.4 / [ Win 2000 | linux ]

Description:
 1) Modify example Address Book (folder samples\addr in standard destribution.

File AddressBook.wsdl :

Add element :

 <xsd:complexType name="mytext">
   <xsd:simpleContent>
    <xsd:extension base="xsd:string">
      <xsd:attribute name="aaabbb" type="xsd:string"/>
    </xsd:extension>
   </xsd:simpleContent>
  </xsd:complexType>

Modify element :
      <xsd:complexType name="address">
        <xsd:all>
            <xsd:element name="streetNum" type="xsd:int"/>
            <xsd:element name="streetName" type="xsd:string"/>
            <xsd:element name="city" type="xsd:string"/>
            <xsd:element name="state" type="typens:stateType"/>
            <xsd:element name="zip" type="xsd:int"/>
            <xsd:element name="phoneNumber" type="typens:phone"/>

            <xsd:element name="text" type="typens:mytext"  minOccurs="0" maxOccurs="unbounded"/>

        </xsd:all>
      </xsd:complexType>

File Main.java : in section STATIC add :

        Mytext mt1 = new Mytext();
         mt1.setAaabbb("en");
         mt1.setValue("text1");
        Mytext mt1_1 = new Mytext();
          mt1_1.setAaabbb("en_1");
          mt1_1.setValue("text1_1");
        addr1.setText(new Mytext[]{mt1,mt1_1});

2) Run the example and get Exception.

faultString: org.xml.sax.SAXParseException: Attribute "aaabbb" was already specified for element
"multiRef".

3) This bug is stable. I found it in another application and modifyed example application
to demonstrate it. Tried under win2000 and linux.



---------------------------------------------------------------------
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