users@jersey.java.net

header response code 415

From: guilhem legal <guilhem.legal_at_geomatys.fr>
Date: Thu, 14 Feb 2008 16:01:49 +0100

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