发送XML到一个ASP.NET MVC操作方法参数 [英] Sending xml to an ASP.NET MVC Action Method Argument

查看:87
本文介绍了发送XML到一个ASP.NET MVC操作方法参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时可以发送POX(普通旧XML)为一个动作,并让该行动执行模型绑定为你的对象。已经看到了这与JSON完成,但没有看到任何具有XML这样做。

Is it possible to send POX (plain old xml) into an action and have that action perform model binding to an object for you. Have seen this done with JSON but dont see anyone doing this with xml.

推荐答案

看着做了类似的事情,但JSON。我想你也可以使用 ActionFilterAttribute 为此目的。一个例子示这里

Looking at doing a similar thing, but with JSON. I think you could also use a ActionFilterAttribute for this purpose. An example is shown here.

这篇关于发送XML到一个ASP.NET MVC操作方法参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆