You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/01/13 20:17:34 UTC
[jira] Created: (CXF-1391) First object in Aegis array of anyType
items has no xsi:type
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.
[jira] Commented: (CXF-1391) First object in Aegis array of anyType
items has no xsi:type
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (CXF-1391) First object in Aegis array of anyType
items has no xsi:type
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies resolved CXF-1391.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.1
Assignee: Daniel Kulp (was: Benson Margulies)
611657 fixes this. Dan, I can't tell whether this is worth 2.0.4-ing.
> 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: Daniel Kulp
> Fix For: 2.1
>
>
> 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.