How to pass XML as POST to an ActionResult in ASP MVC .NET

后端 未结 7 830
[愿得一人]
[愿得一人] 2020-12-15 10:05

I am trying to provide a simple RESTful API to my ASP MVC project. I will not have control of the clients of this API, they will be passing an XML via a POST method that wi

相关标签:
7条回答
  • 2020-12-15 10:39

    I know you can create a custom value provider factory. This will let you also validate your models when they are posted before attempting to save them. Phil Haack has a blog post about a JSON version of this same concept. The only problem is that I don't know how to implement one this same sort of thing for XML.

    0 讨论(0)
提交回复
热议问题