|
From: Stef E. <st...@ep...> - 2008-06-26 14:45:35
|
On Thu, Jun 26, 2008 at 10:41:40AM -0400, Bill Burke wrote: > >But then how does it work if a client only accepts 'application/xml' and > >one of my exception sends 'text/plain' because XML is too verbose for > >exceptions? > > I guess you're talking about the client framework? It really depends on > your return type Now I remember exactly what my problem was: I declared my @ProduceMime to only generate 'application/xml' because that's all I return from my resources. And my clients only accept 'application/xml'. Now when I threw an exception, the mime type was 'text/plain' and the client could not accept it, so I needed to include 'text/plain' in my @ProduceMime (because if I throw exceptions which generate plain text responses, I do produce text/plain) and let my clients accept it too. Not very important ;) > >As much as I'm impressed by the quality of RESTeasy and JAX-RS, I have a > >hard time believing you'll work on updating the JAXB standard just for > >me ;) > > > >I don't have any problem with the integration of JAXB in JAX-RS, but > >rather with the JAXB standard itself and its limitations in our > >use-cases. > > Oh, LOL Ok! Thought you meant RESTEasy + JAX-RS + JAXB! See, now I'm disappointed ;) -- Stéphane Epardaud |