users@jaxb.java.net

Re: No element type generated

From: Josh <gemini929_at_gmail.com>
Date: Fri, 28 Dec 2007 09:53:21 -0500

In the above example, I would expect a class called
MyServiceGetPolicyRequest*Type *to get generated that extends
BaseRequestType. MyServiceGetPolicyRequest would then represent the
element.

Any suggestions?




On 12/28/07, Josh <gemini929_at_gmail.com> wrote:
>
> 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
>
>
>
>
>
>
>