RE: PUT requests return 405 code with @Put annotated method using 2.0.1 release

2010-10-06 Thread Thierry Boileau
Hello, could you give more details about the annotated method? Do such methods have an argument? What release of the Restlet framework are you using? Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&d

RE: PUT requests return 405 code with @Put annotated method using 2.0.1 release

2010-10-07 Thread Juan Carlos Gonzalez
Hi Thierry. I'm using Restlet 2.0.1 GAE release. My annotated method looks like this: @Put Representation accept(Representation representation) My first test was with POST using a method like this: @Post void accept(Representation representation) but I got 405 status code when

RE: PUT requests return 405 code with @Put annotated method using 2.0.1 release

2010-10-07 Thread Thierry Boileau
Hello Juan, just for a purpose of test, could you rename the method? For example: @Put Representation store(Representation representation) Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2

RE: PUT requests return 405 code with @Put annotated method using 2.0.1 release

2010-10-07 Thread Juan Carlos Gonzalez
Hi Thierry. I've renamed the method to store but the problem remaims the same. If it could give you any hint, the response is including an Allow header like this: Allow: PUT Best regards, -- http://restlet.tigris.org/ds/viewMessage.do?dsForum

Re: PUT requests return 405 code with @Put annotated method using 2.0.1 release

2010-10-07 Thread Dustin N. Jenkins
Hi Juan, This problem does not happen in the current snapshot, FYI. I had the same issue with the POST, and my PUT methods work fine with it. As a matter of interest, I also have a void return type on my @Put method. Dustin On 10/07/2010 04:26 AM, Juan Carlos Gonzalez wrote: > Hi Thierry. >

RE: Re: PUT requests return 405 code with @Put annotated method using 2.0.1 release

2010-10-08 Thread webpost
Hi Dustin, I've reproduced the error with a minimal test: public class ApiApplication extends Application{ public static final String TEST_URL = "test"; public ApiApplication(Context context){ super(context); } @Override

RE: Re: PUT requests return 405 code with @Put annotated method using 2.0.1 release

2010-12-08 Thread markcallen
Check your import statements in the ServerResource. They should be like: import org.restlet.resource.Put; I spent some time chasing this one around for a while. Mark. -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/PUT-requests-return-405-code-with-Put-annotated-