title: How to produce ATOM formatted ODATA service with ASP.NET WebApi 2.2?
body: <p>How can you produce ATOM formatted output in an ASP.NET WebApi 2.2 ODATA service? Creating the JSON version, or the simple XML format is easy. But no matter how I request the Content-Type, I always get the 1st format in the configuration. (Using PostMan for Chrome, or setting the Request's Content-Type in the producer method.)</p>
  
  <p>If I use WCF Data Service, I get ATOM formatted result. But as far as I understand, the ODATA v4 is only implemented in WebApi, not in WCF. So, it seems a bit odd, that I can't format it any way I like...</p>
  
  <p>My configuration code is the basic:</p>
  
  <pre><code>   config.MapODataServiceRoute(
          routeName: "ODataRoute",
          routePrefix: null,
          model: builder.GetEdmModel());
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>AntiTalent</p>
  
  <p><strong>UPDATE</strong>:
  Using the <a href="https://stackoverflow.com/questions/25210661/get-the-odata-catalog-for-web-api-odata-v4-in-xml/25269213#25269213">typical solution found on the net</a> (link from 1st comment, @mdisibrio), I get this (WebApi 2.2):</p>
  
  <pre><code>&lt;ODataServiceDocument 
  xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://schemas.datacontract.org/2004/07/Microsoft.OData.Core"&gt;
    &lt;EntitySets&gt;
      &lt;ODataEntitySetInfo&gt;
        &lt;Name&gt;Projects&lt;/Name&gt;
        &lt;Title i:nil="true"/&gt;
        &lt;Url&gt;Projects&lt;/Url&gt;
      &lt;/ODataEntitySetInfo&gt;
    &lt;/EntitySets&gt;
    &lt;FunctionImports/&gt;
    &lt;Singletons/&gt;
  &lt;/ODataServiceDocument&gt;
  </code></pre>
  
  <p>But what I would like to get is (WCF Data Service):</p>
  
  <pre><code>&lt;service xmlns="http://www.w3.org/2007/app"
   xmlns:atom="http://www.w3.org/2005/Atom" 
   xml:base="http://MYSERVER/Service.svc/"&gt;
    &lt;workspace&gt;
      &lt;atom:title&gt;Default&lt;/atom:title&gt;
      &lt;collection href="ProjectList"&gt;
      &lt;atom:title&gt;ProjectList&lt;/atom:title&gt;
      &lt;/collection&gt;
    &lt;/workspace&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>Yes, I'm fully aware, that the entities have different names. It's not what my issue is.</p>