WebApi 接收XML参数
前端请求contentType="text/xml"
WebApi中配置Global文件
var xml = GlobalConfiguration.Configuration.Formatters.XmlFormatter;
xml.UseXmlSerializer = true;
对应XML相对于的类 以此来接收XML参数
前端请求contentType="text/xml"
WebApi中配置Global文件
var xml = GlobalConfiguration.Configuration.Formatters.XmlFormatter;
xml.UseXmlSerializer = true;
对应XML相对于的类 以此来接收XML参数