Hello Thierry,
it works when I completely leave out any parameter to the Post annotation, but
thats not quite the way it should be, I guess.
I also tried to change the parameter type of my method to
String processXml(Object xml)
and directly put in the unencoded object.
This turned out to
Hello Thierry,
thanks for your quick reply. Unfortunately, that did not solve the problem.
Btw., xml is only a shorthand for value=xml, when your Annotation has only
a single attribute (see attached code completion screenshot).
content-type remains text/plain
Georg.
Hi Thierry,
I tried what you are proposing, but for some reasons that produced erroneous
results:
1. though my @Post(xml) required an xml representation,
I'm getting json (I just verified this with 2.0.7)
which also generates a 415 exception
2. json Representation is decoded to a map
3 matches
Mail list logo