cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <>
Subject [jira] Commented: (CXF-1391) First object in Aegis array of anyType items has no xsi:type
Date Sun, 13 Jan 2008 19:24:34 GMT


Benson Margulies commented on CXF-1391:

Here's the nature of the problem. The type of the first element of this array is in the override
type list. The writeXsiTypes flag is false. BeanType does not know that it is being called
from an array of anyType, so it doesn't write the tag. 

For the other elements in the array, we are passing through 'ObjectType' instead of BeanType,
and it always writes an xsi:type.

I think it makes sense for the ArrayType code to force the xsi flag in the context while writing
items for an xs:anyType array.

> First object in Aegis array of anyType items has no xsi:type
> ------------------------------------------------------------
>                 Key: CXF-1391
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>            Assignee: Benson Margulies
> The Javascript Aegis test has a case in which the response looks like the following.
Note the missing xsi:type on the first element, as well as the extra xsd prefix.
> <soap:Envelope xmlns:soap="">
>    <soap:Body>
>       <ns1:returnBeanWithAnyTypeArrayResponse xmlns:ns1="">
>          <ns1:return>
>             <ns2:objects xmlns:ns2="">
>                <ns3:anyType xmlns:ns3="">
>                   <ns2:name>shrew</ns2:name>
>                </ns3:anyType>
>                <ns3:anyType ns4:type="xsd:int" xmlns:ns3=""
xmlns:xsd="" xmlns:ns4="">42</ns3:anyType>
>                <ns3:anyType ns4:type="ns2:Vegetable" xmlns:ns3=""
>                   <ns2:family>brasica</ns2:family>
>                </ns3:anyType>
>             </ns2:objects>
>             <ns2:string xmlns:ns2="">lima</ns2:string>
>          </ns1:return>
>       </ns1:returnBeanWithAnyTypeArrayResponse>
>    </soap:Body>

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message