Hi Benson,

In my project I have something like:
<xsd:choice minOccurs="1" maxOccurs="unbounded">
  <xsd:element name="Color" type="tns:ColorType"/>
  <xsd:element name="Sound" type="tns:SoundType" />
</xsd:choice>

And this gets generated into:

@XmlElements({
    @XmlElement(name = "Color", namespace = "http://myco.com/types";,
required = true, type = ColorType.class),
    @XmlElement(name = "Sound", namespace = "http://myco.com/types";,
required = true, type = SoundType.class)
})
protected List<Object> colorOrSound;

And then of course the corresponding getter.

-Chris

-----Original Message-----
From: Benson Margulies [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 17, 2007 3:28 PM
To: [email protected]
Subject: schema choice elements

Hi,

 

If I wsdl2java  with a schema with a 'choice' element, what shows up in
the Java code? I know, I could try an experiment, but I imagine that
someone reading this could tell me in 20 seconds or so.

 

--benson

 

Reply via email to