I'm confused - what exactly do you want casted an where? JAXB is responsible
for generating the classes from the schema so I'm afraid we don't have too
much control there. A WSDL and an example of how you'd like things to look
might help a bit.
Thanks,
- Dan
On 6/18/07, Erlend Hamnaberg <[EMAIL PROTECTED]> wrote:
Hello.
Another problem occured while my first problem was fixed.
The xml types from the wsdl file i need to use, has some built-in
inheritence.
Snippet from schema that describes this follows:
<xs:complexType abstract="true" name="UserProfile.Type">
<xs:annotation>
<xs:documentation>
</xs:documentation>
</xs:annotation>
<xs:sequence>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SimpleUserProfile.Type">
<xs:annotation>
<xs:documentation>
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:UserProfile.Type">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="1"
ref="tns:IMSSourcedid"/>
<xs:element maxOccurs="1" minOccurs="1"
ref="tns:Userid"/>
<xs:element maxOccurs="1" minOccurs="1"
ref="tns:FirstName"/>
<xs:element maxOccurs="1" minOccurs="1"
ref="tns:LastName"/>
<xs:element maxOccurs="1" minOccurs="0"
ref="tns:Ancillary"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
What I am wondering is: Is it possible to force cxf to cast the object
to SimpleUsertype ?
The generated UserType is an abstract object.
I cannot change the schema, so i need to be able to override this. I can
post the entire wsdl file if this is helpful to you.
Regards
Erlend Hamnaberg
Lead Developer
Evatest
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog