Nested beans in Apache Axis - can it be done?

kips

New Member
Hi there,

I have a problem trying to get my aweb service running, when it is using nested beans.

Example:
Bean1 contains an ArrayList of Bean2, which in turn contains an ArrayList of Bean3.

Bean1
-----bean2List (Bean2s)
---------------------------bean3List (Bean3s)


When I call my service I get the following error:

Invalid element in com.project.beans.Bean1 - bean3List

Now bean3List is the name of the ArrayList of Bean3 that is inside Bean2.

If I create an ArrayList called 'bean3List' in Bean1, then the error moves onto the next parameter in Bean2 and etc etc etc...

So basically it would seem Axis can not 'see' the parameters inside my nested beans (Bean2, Bean3, etc), as if it can't see beyond the parent Bean (Bean1).

Is there a way around this, or rather how should this be achieved (if of course it can)???

Many tanks for any response as so far on 3 forums I have had ZERO!
 
Top