You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by KPS_01 <ke...@yahoo.com> on 2010/03/18 16:05:57 UTC

Nested beans in Axis web service

Hi there

I have an issue with Axis calling nested beans giving me an [i]Invalid
element[/i] error.

Using the following example:-
Bean 'Order' contains List of beans 'Item' called itemsList
Each bean 'Item' contains List of beans 'Type' called typeList

[code]Order 
 -- Item
 ---- Type
 ---- Type
 ---- Type
 -- Item 
 ---- Type
 -- Item
  ---- Type
  ---- Type[/code]
 
It seems that the params in the nested beans such as typeList are not
accessable I get the following error:
 
[i][b]Invalid element in com.project.beans.Order - typeList[/b][/i]

The only way it seems it's possible to make this accessable is by having the
params from the nested beans (Item) in the 'parent' bean (Order).
 
 Has anyone any advice on ways round this?
-- 
View this message in context: http://old.nabble.com/Nested-beans-in-Axis-web-service-tp27946928p27946928.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org