Hi Guys,
There is no out-of-the-box org.w3c.dom.Document provider
(MsgBodyReader/Writer) in Jersey (at least not in 1.1.1-ea). You are
probably fully aware of this but nevertheless it seems like an
oversight to me. So basically you're not able to quickly write a most
obvious piece of code that comes to one's mind when writing a web
service:
@GET
@Produces("application/xml")
public Document get() { ... return doc; };
results in:
A message body writer for Java type, class
com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl, and MIME
media type, application/xml, was not found
Any reason for that?
--
Cheers,
Jacob