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] Commented: (AXIS-1715) ArraySerializer generates duplicate xsi:type attributes
Date Wed, 27 Jul 2005 20:28:30 GMT
    [ http://issues.apache.org/jira/browse/AXIS-1715?page=comments#action_12316977 ] 

Davanum Srinivas commented on AXIS-1715:
----------------------------------------

Fixed in latest CVS.

thanks,
dims

> ArraySerializer generates duplicate xsi:type attributes
> -------------------------------------------------------
>
>          Key: AXIS-1715
>          URL: http://issues.apache.org/jira/browse/AXIS-1715
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC2
>  Environment: Axis hosted in Tomcat, SOAP::Lite Perl client
>     Reporter: Adam Kropp
>     Priority: Minor

>
> When serializing a complex type using the BeanSerializer and ArraySerializer classes,
array elements were getting generated with duplicate xsi:type attributes.  This causes XML
validators (i.e. in SOAP::Lite) to complain about invalid XML.
> I tracked it down to a call to SerializationContext.setTypeAttribute(Attributes, QName).
 In this method, it checks whether the xsi:type attribute is already present using Constants.URI_DEFAULT_SCHEMA_XSI
(which is "http://www.w3.org/2001/XMLSchema-instance").  Unfortunately, in this case, the
actual XSI schema is "http://www.w3.org/1999/XMLSchema-instance"; thus the check fails and
it adds an additional xsi:type attribute to the attributes collection.
> I was able to remedy this problem in my local build by replacing Constants.URI_DEFAULT_SCHEMA_XSI
with schemaVersion.getXsiURI().

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message