Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes Nested beans in Axis web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Nested beans in Axis web service" Watch "Nested beans in Axis web service" New topic
Author

Nested beans in Axis web service

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Hi there

I have an issue with Axis calling nested beans giving me an Invalid element error.

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



It seems that the params in the nested beans such as typeList are not accessable I get the following error:

Invalid element in com.project.beans.Order - typeList

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Nested beans in Axis web service