Excel expects an XML service doc, but it doesn't send any Accept header. By default ASP.NET Web API OData sends back a JSON service doc when no Accept header is specified. As a result you cannot consume a default ASP.NET Web API OData service using Excel.
We should switch our default format for service documents to be XML.
Comments: The fix is to not having ODataMetadataController deriving from ODataController, rather has its own attribute ODataMetadataFormattingAttribute, and its implementation similar to what we do today with ODataFormatting Attribute except it reverse the json formatters and xml formatters.
We should switch our default format for service documents to be XML.
Comments: The fix is to not having ODataMetadataController deriving from ODataController, rather has its own attribute ODataMetadataFormattingAttribute, and its implementation similar to what we do today with ODataFormatting Attribute except it reverse the json formatters and xml formatters.