This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

alternative for xsd:choice in generating java bean for webservices

 
Shruthi Babu
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We get the following error

WSWS3029W: Warning: The xml construct named Test cannot be mapped to a java type. The construct will be mapped to javax.xml.soap.SOAPElement.

Guess it is because of using xsd:choice and using JAX-RPC to generate the java code .

How to resolve this issue?
 
long shot
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use polymorphism as an alternative to xsd:choice

Refer to following article
http://www.ibm.com/developerworks/xml/library/ws-tip-xsdchoice.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!