Hello All, I'm building a contract first web service and the schema uses choice groups. I'm wondering if anyone out there uses choice groups at all and if they do, what tool you use to generate the code (if not WSDL2Java).
I've been using WSDL2Java (and tried JAXB 2.0-ea) but both of these tools will create a class (from a choice group) which has n private attributes (one per choice). It does this, even if the choice elements all have a common base type. I personally don't like this approach, but I'm open to using it if there's some "good reason" for doing it. It seems to me that a choice group could also be represented by an Object; but I'm wondering if maybe I'm missing "the big picture". Has anyone used choice groups in their schemas and/or are there any best practices out there on this subject? Thanks, -Clint