File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Nested beans in Axis web service

 
Kevin P Smith
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic