I'm working on a fairly large complex app that uses jaxb and jersey.
One thing I've run into is that our Web API has to work with multiple
levels of nested objects.
For some calls, ObjectA contains a list of ObjectB.
On others, I want to send/receive just a single ObjectB.
ObjectA can't seem to contain a list of xs:element, so ObjectB is
defined as a xs:complexType.
But then I can't marshal an ObjectB - but I can unmarshal it.
How am I supposed to handle this kind of situation?