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 instead of a
MemberDto object
So I rather control serialisation to and deserialisation from xml myself using
the XStream library. I have attached my dto source, which is an enhanced bean,
maybe I made some mistake there.
Thanks for your patience,
Georg.
> Hi Georg,
>
> I get it. Actually, the client does not send an XML representation, but a
> text one (as shows the content type). I wonder how you generate the
> representation from "register.processXml(registration)".
> If your client side also relies on a Restlet client, you can send your
> memberDto directly and let the XStream converter serialize it into XML
> clientResource.post(memberDto);
>
> Best regards,
> Thierry Boileau
>
>
> 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.
> >
> > ------------------------------------------------------
> >
> > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2754397
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2754459
MemberDto.java
Description: Binary data
EntityDto.java
Description: Binary data

