Do you know of anyway that a dynamic parameter will work for a request that contains XML?
POST http://localhost:52753/api/Test HTTP/1.1
Content-Type: application/xml; charset=utf-8
and have this bind into:
public dynamic Post([FromBody]dynamic xml)
Thursday, January 10, 2013 6:11:52 PM UTC
Andy - No, but this isn't a WebAPI issue. I don't think there are any XML parsers on .NET that use Dynamic. If there were, you could write a model binder quickly.
GlobalConfiguration.Configuration.Formatters.XmlFormatter.UseXmlSerializer = true;
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)