It's really more of a bean question, since the same issues would come up with any bean, perhaps instantiated via <
jsp:useBean /> in a JSP. But, in this case, it is the return type from a WebMethod, as in my simple
test program:
I didn't get the kids in my returned Parent data until I added the setKids method to Parent, which was the method I was trying to avoid having publicly available.