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

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -