cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/CXF-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558440#action_12558440
] 

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: https://issues.apache.org/jira/browse/CXF-1391
>             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="http://schemas.xmlsoap.org/soap/envelope/">
>    <soap:Body>
>       <ns1:returnBeanWithAnyTypeArrayResponse xmlns:ns1="http://fortest.javascript.cxf.apache.org/">
>          <ns1:return>
>             <ns2:objects xmlns:ns2="http://aegis.fortest.javascript.cxf.apache.org">
>                <ns3:anyType xmlns:ns3="http://cxf.apache.org/arrays">
>                   <ns2:name>shrew</ns2:name>
>                </ns3:anyType>
>                <ns3:anyType ns4:type="xsd:int" xmlns:ns3="http://cxf.apache.org/arrays"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns4="http://www.w3.org/2001/XMLSchema-instance">42</ns3:anyType>
>                <ns3:anyType ns4:type="ns2:Vegetable" xmlns:ns3="http://cxf.apache.org/arrays"
xmlns:ns4="http://www.w3.org/2001/XMLSchema-instance">
>                   <ns2:family>brasica</ns2:family>
>                </ns3:anyType>
>             </ns2:objects>
>             <ns2:string xmlns:ns2="http://aegis.fortest.javascript.cxf.apache.org">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.


Mime
View raw message