users@jersey.java.net

Re: header response code 415

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Thu, 14 Feb 2008 10:13:07 -0500

415 is returned when the format of the request isn't supported - i.e.
there's no method with an @ConsumeMime for the type of request you are
sending. Can you send the method signature including all the
annotations and let us know what the media type of the request is.

Marc.

On Feb 14, 2008, at 10:01 AM, guilhem legal wrote:

> hi!
>
> i'm testing my webservice using jersey on a server whitch verify the
> validity of my xml,.. anyway,
> it appears that some of my response have an header with responseCode
> 415 witch is problematic.
>
> I return xml like that :
>
> StringWriter sw = new StringWriter();
> marshaller.marshal(worker.getCapabilities(gc), sw);
> return Response.ok(sw.toString(), "text/xml").build();
>
> how can i avoinding that?
>
> Guilhem Legal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.