cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allam <>
Subject JAX-RS: marshalling/unmarshalling between cxf 2.5 and cxf 2.7
Date Thu, 13 Jun 2013 14:46:24 GMT

I have a restful service which implements the following interface:
public interface ServiceInterface {

    public void op(Resource1 r);


and I have two classes Resource1 and Resource2, such that Resource2 extends
(I am not using @XmlSeeAlso annotation in Resource1 class to bind on
Resource2 class).
I would like to call the service method op, using an instance of Resource2.

Before, by using CXF 2.5, the Resource2 instance is marshalled to the
following XML :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

and an exception is thrown at reception because the expected root element is
"resource1" not "resource2".

While by using CXF 2.7, the Resource2 instance is marshalled to the
following XML:

And there isn't any exception at reception.
That means, in CXF 2.5, the marshalling type was the dynamic type, while in
the cxf 2.7 version, the marshalling type is the static type.

What does make this change between the two versions? Which class was
and for which reason this modification was done between the two versions?



View this message in context:
Sent from the cxf-dev mailing list archive at

View raw message