Hi Ken,
It's intended result for list type by JAXB.
You can add item in list but can not set a totally new list.
You should see comment like
<p>
* For example, to add a new item, do as follows:
* <pre>
* getChoice().add(newItem);
* </pre>
Thanks very much
Freeman
Ken Gallo wrote:
Hi guys, I'm fairly new to CXF and I've got a question regarding the
WSDL2Java tool:
I was using this WSDL snippet:
<!-- ChoiceType -->
<complexType name="ChoiceType">
<sequence>
<element name="choiceId" type="string"/>
<element name="choice" type="string"/>
<element name="score" type="float"/>
</sequence>
</complexType>
<!-- ChoiceList -->
<complexType name="ChoiceList">
<sequence>
<element name="choice" type="type:ChoiceType"
minOccurs='0' maxOccurs='unbounded'/>
</sequence>
</complexType>
I ran the WSDL2Java tool using the maven plugin and I got both
/ChoiceList.class/ and /ChoiceList.java/ with the /getChoice()/ method
but the /setChoice(ChoiceType) /was missing.
Any answers to why it was missing and some possible work around?
Thanks,
Ken