Daniel Wood wrote:
I'm currently developing an app (using CXF 2.06 for the ws interaction)
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 implementation
(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 explicitly.

http://www.nabble.com/problem-serializing-class-hierarchy-tt16795656.html

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

Ian

--
Ian Roberts               | Department of Computer Science
[EMAIL PROTECTED]  | University of Sheffield, UK

Reply via email to