I am not using the native restlet api for the resource interface but the
jax-rs annotations, which should be defined as:

@POST
@Consumes(MediaType.JSON)
public void doPost(JSONObject jo){
....

consequently the exception is being thrown at the client side. Thus, what
helps as a work-around is  I have changed the param type to String.

Thanks
Daku


--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/error-415-while-posting-json-tp6418843p6431527.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to