axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Updated: (AXIS-1466) Error with array of objects with <xsd:extension base="xsd:string"> in definition
Date Tue, 23 Nov 2004 21:46:31 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1466?page=history ]

Davanum Srinivas updated AXIS-1466:
-----------------------------------

    Attachment: diff.txt

Ashu,

Will this simpler patch fix AXIS-1464 and AXIS-1466?

thanks,
dims

> Error with array of objects with <xsd:extension base="xsd:string"> in definition
> --------------------------------------------------------------------------------
>
>          Key: AXIS-1466
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1466
>      Project: Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2 Beta
>  Environment: java 1.4 / [ Win 2000 | linux ]
>     Reporter: An Tin
>     Priority: Critical
>  Attachments: diff.txt, patch_1466.txt
>
>  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.

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