I have a Web API project that returns some product data. It negotiates the return type correctly depending on the Accept header (JSON/XML) of the request. The problem is, if
Or just remove the XmlFormatter
var formatters = GlobalConfiguration.Configuration.Formatters; formatters.Remove(formatters.XmlFormatter);