unsupported media type

2014-07-11 Thread Frank Kolnick
I get this error when issuing a PUT to a Restlet-based server. Is there a way to tell Restlet to accept 'anything', i.e., all text-based content? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3084952

RE: Re: Put with no content

2014-07-11 Thread Frank Kolnick
Thanks Thierry. I believe it happens specifically when the content length is set to zero (from my reading of previous posts on the subject, and from my own specific case). I have declared simply: @Put public void update(); The 'update' method is never called. I.e., the client gets the

Re: Put with no content

2014-07-11 Thread Thierry Boileau
Hello, I dont see clearly the link between the fact that the client sends a PUT request without content and the fact that the client receives a "204 - No content" response. Could you describe the resource that responses to the call, especially the method that handles the PUT request? Having said

Put with no content

2014-07-11 Thread Frank Kolnick
A previous thread seems to indicate that this has been fixed, but I still get a "No Content" error when I send a PUT to a Restlet-based server. (The client uses a library other than Restlet.) I have the latest stable release of Restlet. Is there a work-around? Preferably not one that requires i

Re: Getting Started with Restlet

2014-07-11 Thread Thierry Boileau
Hello, you can find: - a first tutorial here: http://restlet.com/learn/tutorial/2.2/ - a hello world application here : http://restlet.com/learn/guide/2.2/editions/jse/ - a full running sample code running on GAE with android, gwt and classic JVM client codes here: http://restlet.com/learn/guid

Getting Started with Restlet

2014-07-11 Thread Tejas Dharamsi
I want to use Restlet framework for making a rest api which will act as an interface for my java back end and angular js front end. Can you post an example which can help me move swiftly to achieve my goals I want data encoding in JSON. Thanks. do revert back at the earliest. Dharamsi --