Maybe this isn't *directly* Jersey related. I suspect this is more an issue
of my Jaxb lack of knowledge. Still, I'm experiencing this while working
with Jersey, so maybe someone has the info?
I've configured my ws to return this in my AccountsResource class:
@GET
public List<AccountSummaryDTO> getAccounts() {
...
This works beautifully EXCEPT that the root element is named
AccountSummaryDTOes...ugh:
<AccountSummaryDTOes>
<accountSummary>
<company>sldkfjsl</company>
<distributorName>iejlde</distributorName>
<id>4</id>
<infoComplete>true</infoComplete>
<name>0014a0000002</name>
<serviceLevel>3</serviceLevel>
</accountSummary>
<accountSummary>
<distributorName>oiroiroiru</distributorName>
<id>332</id>
<infoComplete>false</infoComple
...
I'd like the root element to be accountSummaryList. But I can't quite figure
out where that should be configured. Do I need to create a wrapper around
List<AccountSummaryDTO> and use XmlRoot there? Or can I tell Jersey/Jaxb to
use a different name for the List itself?
Thanks!