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

Reply via email to