users@glassfish.java.net

Re: HTTP 405 error

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 23 Jun 2010 08:33:10 -0700

On Jun 23, 2010, at 7:45 AM, Marcus Veloso wrote:

> Hi, Solved. Just remove @Consumes annotation after @POST. Don't ask
> me why.
>

There is something weird going on because @Consumes is unrelated to a
405 response. A failed match related to @Consumes will result in a 415
response.

Paul.

> ...
> @POST
> public String postXml(String content) {
> ...
>
> Paul, thank you for your help.
>
> Marcus