With Restlet 2.0, you can do the following (assume a UserResource class with a createUser() method):
public class UserResource extends ServerResource { @Post public Representation createUser(Representation entity) { String xml = entity.getText(); return new StringRepresentation(xml, MediaType.APPLICATION_XML); } } The POST's payload in in the entity object. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2377660