This is too abstract for me - please provide something tangible.
Generally speaking, it's possible to have a complexType that's both a
component (list element or scalar) of another object and a solitary document
type.
-W
On 14 September 2011 17:09, <cougar_at_casadelgato.com> wrote:
> 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?
>