Hi,

I'm experimenting with the JAX-RS implementation in CXF. I'm trying to
create methods that are able to return content in different formats. The
JAX-RS spec says that any method can declare multiple MIME types that it
produces, like:

    @ProduceMime({"application/xml", "application/json"})


but when trying this out, I see that the CXF implementation effectively
only allows for a single MIME type declaration. If I declare multiple
entries, like above, strangely the returned MIME type will be
application/xml, but the returned format will be application/json

I wonder if it's possible to make this feature work in CXF as in the spec?


Akos

Reply via email to