All,
I am fairly new with JAXB2. When generating java code for the following:
<xsd:element name="MyService_GetPolicyRequest">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="tns:BaseRequestType">
<xsd:sequence>
<xsd:element name="policy"
type="commonTypes:PolicyType"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
I get a class called MyServiceGetPolicyRequest that extends
BaseRequestType. The problem is that this class represents an annonymous
complex type and not an element. Why does this not get generated as a
JAXBElement? Does this not work if elements contain annonymous complex
types?
Regards,
Joshua