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 "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/08/22 00:35:55 UTC
[jira] Resolved: (AXIS-1715) ArraySerializer generates duplicate xsi:type attributes
[ http://issues.apache.org/jira/browse/AXIS-1715?page=all ]
Davanum Srinivas resolved AXIS-1715:
------------------------------------
Resolution: Fixed
Marking as fixed.
> 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