[ 
http://issues.apache.org/jira/browse/AXIS-2280?page=comments#action_12359735 ] 

Werner Kolov commented on AXIS-2280:
------------------------------------

I have the same problem. I even debugged axis sources to be sure, that axis 
does something wrong and saw, that array elements are always serialized using 
their base type, as Peter wrote. Collection elements are serialized correctly 
using the element type (see ArraySerializer.serialize(), line 127 in the 1.3 
final release). As a work-around I manually replaced arrays with Collections in 
the generated stub classes and removed depending array mappings in the WSDD 
file. 
Please fix it soon, because it really sucks to change generated classes 
manually each time I change something in my web service.

> Array elements of derived (XSD extension type) are not serialized correctly
> ---------------------------------------------------------------------------
>
>          Key: AXIS-2280
>          URL: http://issues.apache.org/jira/browse/AXIS-2280
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.3
>     Reporter: Peter Canning
>     Priority: Blocker
>  Attachments: arrayExtensionTest.wsdl, arrayExtensionTestClient.java
>
> This is a regression from Axis (Java) 1.2.1.
> If an operation take a parameter whose type is an array 
> (maxOccurs="unbounded") of a base type, and the client passes an array 
> containing a value whose type is derived (an XSD extension) from the base 
> type, the value is serialized as the base type, and the additional elements 
> in the derived type are omitted.  In addtion the element  for the value is 
> missing the expected xsi:type attribute.
> I will attach an example to demonstate the problem.

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

Reply via email to