Hello Conor,

I send you a test case, that works for me, with the current snapshot. There is 
a ServerResource with 2 annotated methods:

@Post("xml:json")
public String saveXmlReturnJson(Representation entity) {
    return "saveXmlReturnJson";
}

@Post("xml:xml")
public String saveXml(Representation entity) {
    return "saveXmlReturnXml";
}

Then using curl as follow I get the right answers :

curl -d "param1=value1" -H "Content-Type: application/xml" -H "Accept: 
application/xml"  http://localhost:8182/test

displays "saveXmlReturnXml" on the console.

curl -d "param1=value1" -H "Content-Type: application/xml" -H "Accept: 
application/json"  http://localhost:8182/test

displays "saveXmlReturnJson" on the console.


Could you confirm that it wors for you also?

Anyway thanks for your report, I've updated the javadocs and replaced "comma" 
by "colon.

Best regards,
Thierry Boileau

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2585586

Reply via email to