Hi André, The mime is hard coded in the ERXXmlRestWriter.
Officially, text/xml and application/xml are valid, do you really need to change it ? You can probably write a subclass of ERXXmlRestWriter and override only the public String contentType() method to return your desired mime and register the class like this: ERXRestFormat.registerFormatNamed(new ERXXmlRestParser(), new YouXMLWirter(), new ERXRestFormatDelegate(), ERXRestFormat.XML_KEY, "application/xml", "text/xml"); Regards, Samuel > Le 31 janv. 2019 à 18:48, André Rothe <andre.ro...@phosco.info> a écrit : > > Hi, > > I'm playing around with ERRest. I have some routes, which return data as XML. > The content-type of the HTTP response is always text/xml, I try to change it > to application/xml, but it seems not to work with setHeader() on the > WOActionResult.generateResponse(). How I can set the header? > > Thank you > André > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com > > This email sent to sam...@samkar.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com