Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

New Post: HttpClient.PutAsJsonAsync(requestUri, value) does not post value to controller

$
0
0
We understand that this issue could be blocking you, but please please do not spam the discussion forums.

Your following conclusion
The only logical conclusion, proven by the FACTS, is that the Microsoft developed controller does NOT like (Album entity = null) the Microsoft developed HttpClient.PutAsJsonAsync() call.
is right.

Our web API OData story lacks the client piece for now i.e a client side OData formatter. HttpClient and the json.net formatter are not supported with the ODataController and EntitySetController as there are some differences in how json.net serializes an object vs what the OData protocol expects. And, our ODataMediaTypeFormatter can only be used on the server. You have to use the WCF Data services client to talk to an web API OData service.

There is a codeplex issue open for adding client support. You could show your support by voting for it. You can also contribute this feature and send us a pull request.. We would be more than happy to review it and take it.

Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>