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

Created Unassigned: WebApi - html inside xml request [1105]

$
0
0
Hi asp.net community members.
I have issue with deserialization of string that contains html: value = null when I post html.
Controller method:
// POST api/values
public string Post([FromBody]string value)
{
return value;
}
Xml for post:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"><div></div></string>


Viewing all articles
Browse latest Browse all 7925

Trending Articles



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