HTTP_RESPONSE_HEADER and Content-type
i'm developing a little restful web service that will use Atom Publishing Protocol.
As for some response i need to set a correct Content-type, like "application/atomsvc+xml" for a Service Document for example, i do like this:
Map> m= new HashMap>(1);
ArrayList list= new ArrayList(1);
where mc is the MessageContext, of course.
The problem is that when i look at the response packet the server send, it has the Content-type field I set plus another Content-type with "text-xml" value that i'm not able to avoid.
Is there something I'm missing? For the XML part I'm currenty using a String, later converted to a Source object.