• Post Reply Bookmark Topic Watch Topic
  • New Topic

alternative for xsd:choice in generating java bean for webservices  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!