Have you tried the version of setEntity that has a MediaType as its second argument? That should allow you to specify the content type you want to return. In our project, we use the version of setEntity() that accepts a String and a MediaType for purposes of returning XML data, and it seems to work OK.
On Thu, Jan 8, 2009 at 1:37 PM, Kat Kat <[email protected]> wrote: > Well, thank you. I did get the part of getResponse() and then setEntity by > the time I looked at your comment. > > Although in setEntity I could only use StringRepresentation and otherwise > something like DomRepresentation failed. > > Basically after I do POST I want to return some info in XML and content > type text-xml. > > Thanks > > > > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1012146 >

