tag:blogger.com,1999:blog-6082652835152798567.post5849341524501726223..comments2024-03-28T21:41:58.974-07:00Comments on Sql server, .net and c# video tutorial: ASP.NET Web API Content NegotiationUnknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6082652835152798567.post-68119066579270437472020-09-06T15:44:23.911-07:002020-09-06T15:44:23.911-07:00Kudvenkat Sir, you wrote "the server picks th...Kudvenkat Sir, you wrote "the server picks the first formatter which is a JSON formatter and formats the data in JSON."<br />However, in your example Accept: application/xml,application/json the first formatter is XML not JSON<br /><br />Well, when I send Accept: application/xml,application/json the formatter selected by webapi is indeed JSON and not XML (though XML is the first formatter).<br />Why so ? Please help understandHassanhttps://www.blogger.com/profile/06255661377144237973noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-86601571703714408142019-07-05T00:16:38.675-07:002019-07-05T00:16:38.675-07:00It's the sequence of preferences sending to WE...It's the sequence of preferences sending to WEB API, if your preference of receiving the response in sequence XML,JSON, then web api return the response in XML. If WEB API is not supported or restricted to deal with XML Formatter then it returns in JSON format.<br /><br />Note: If you specify the quality factor along with Accept value, order doesnt matter. Web API takes the highest quality factor as first preference and sends the response in same format.Prasad Gudurihttps://www.blogger.com/profile/07597665053011167841noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-7195809420539508192019-03-16T23:25:10.466-07:002019-03-16T23:25:10.466-07:00This is correct i have observed the same ,in case ...This is correct i have observed the same ,in case of multiple accept header json and xml it will give only jsonAnonymoushttps://www.blogger.com/profile/03090235904140290256noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-90096440145666277662018-09-22T22:41:15.004-07:002018-09-22T22:41:15.004-07:00If we define multiple value in accept header (i.e ...If we define multiple value in accept header (i.e JSON, XML) and WEB API will return in JSON data at all then what is the benefit to set multiple value in accept header ?? My question is, In which case it will return XML format data while we have set multiple values in accept header ??शलभ सौरभhttps://www.blogger.com/profile/10338213465931890986noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-74453346823925233872016-12-04T16:59:39.737-08:002016-12-04T16:59:39.737-08:00Excelente material!! , estoy muy agradecido, un Ma...Excelente material!! , estoy muy agradecido, un Maestro esplendido,saludos desde MexicoAnonymoushttps://www.blogger.com/profile/15071501648060600330noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-53272406784724869822016-09-06T11:48:29.236-07:002016-09-06T11:48:29.236-07:00Please sir what is datawarehouse prepare and uploa...Please sir what is datawarehouse prepare and upload a series on this if you can thank you sir for your extremely help of uploading all vidios series<br />Anonymoushttps://www.blogger.com/profile/14780594643300739623noreply@blogger.com