cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Wood" <>
Subject RE: cxf and abstract object transformation
Date Tue, 06 May 2008 15:06:53 GMT
Thanks for the help I have this working now.


-----Original Message-----
From: Ian Roberts [] 
Sent: 06 May 2008 14:36
Subject: Re: cxf and abstract object transformation

Daniel Wood wrote:
> I'm currently developing an app (using CXF 2.06 for the ws
> and have come across an issue when transforming data from an external
> web service back into Java. It looks like CXF is trying to create the
> abstract version of the object, rather than the concrete
> (see stack trace at the end of this message). Is there any way I can
> help CXF identify this data with the correct implementation of the
> object through code?

There was a post about this a couple of weeks back - in order to pass 
objects of types that are not directly used as parameter or return 
types, you need to tell the JAXB context about the subclasses

With CXF 2.1 you can just use @XmlSeeAlso, but it's a bit more 
complicated with 2.0.x.


Ian Roberts               | Department of Computer Science  | University of Sheffield, UK

This transmission is confidential and intended solely for the person or organisation to whom
it is addressed. It may contain privileged and confidential information. If you are not the
intended recipient, you should not copy, distribute or take any action in reliance on it.
If you have received this transmission in error, please notify the sender immediately. All
messages passing through this gateway are virus scanned. Any opinions or advice contained
in this e-mail are those of the individual sender except where they are stated to be the views
of RDF Group plc or its subsidiaries, RDF Consulting (registered number 3522265), RDF Resources
(3984500) and Aqua Resources Group (4975898). RDF Group plc is registered in England at 2
Bartholomews, Brighton, BN1 1HG (registered number 3637683).

View raw message