Hi
I jusrt checked the code for the provider, Boolean.class is not recognized. I have a fix and tests ready to go but I need to sign
out now. The relatively easy workaroung is to copy the source code of PrimitiveTextProvider into your own custom one and add "||
Boolean.class.isAsignableFrom(class)" check into isSupported() function and then register this provider in Spring. And also, make
sure your Accept HTTP header contains "text/plain",
Cheers, Sergey
Hi again! :-[
In the documentation regarding the message body providers, there is written
that :
" CXF also supports primitive types and their Number friends when text/plain media
type is used, either on input or output."
( http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html )
My question is : is it already implemented in the 2.1.2 version of CXF ?
My web service (annotated with @ProduceMime("text/plain") ) has a method returning a boolean. When sending a request to it, I get
the following error message :
.No message body writer found for response class : boolean.
It seems to be ok for numbers but not for boolean.
Could you tell me what are the current implemented default providers for both input and output and for both plain/text,
application/xml and application/json, please?
In order to know what providers I have to implement. :-)
Thanks a million!