resources - Restlet : why can't I get the POSTed XML content? -
i'm using restlet provide rest services through api. until now, available resources have been accepting content in form of key,value pairs. i'm extend resources may accept xml instead.
however, can't work. when post requests xml content, request#getentity()
doesn't seem have idea of posted content. i've tried wrap entity in domrepresentation
, doesn't either. also, when invoke request#getentity().gettext()
null.
what need in order service accept xml? i've added org.restlet.ext.xml
classpath...do need declare in way? furthermore, there other dependencies somehow need take care of manually?
try using s stringrepresentation. see this: http://l46kok.blogspot.co.il/2013/06/restlet-how-to-post-xml-data-from-client.html
Comments
Post a Comment