[
https://issues.apache.org/jira/browse/CXF-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772265#action_12772265
]
Benson Margulies commented on CXF-1266:
---------------------------------------
I need some help ...
In the schema, the bean array is not set nillable. So what am I supposed to do
to serialize a null? Or are array elements nillable ex-officio?
@WebMethod
void beanFunction(@WebParam(name = "bean1") TestBean1 bean,
@WebParam(name = "beanArray") TestBean1[] beans);
/** {...@inheritdoc}*/
public void beanFunction(TestBean1 bean, TestBean1[] beans) {
lastBean1 = bean;
lastBean1Array = beans;
}
> Nil value for nillable array element is default-constructed
> -----------------------------------------------------------
>
> Key: CXF-1266
> URL: https://issues.apache.org/jira/browse/CXF-1266
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding
> Affects Versions: 2.1
> Reporter: Benson Margulies
> Assignee: Benson Margulies
> Attachments: ii.xml
>
>
> My javascript code generates the (about to be) attached XML message for the
> beanFunction operation of org.apache.cxf.javascript.fortest.SimpleDocLitBare.
> The service receives a default-constructed object instead of a null pointer
> for the slot corresponding to the xsi:nil.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.