Trying to set up a controller action as Xml endpoint
问题 I wanted to build a POX endpoint by using an ASP.NET MVC 2 controller action. I thought I would be able to reuse a lot of working code and be done in 15 min tops. I was wrong. My action looks like this: [HttpPost] [ValidateInput(false)] public ContentResult DoSomething(string xml) The ValidateInput attribute is required because you'll get a nasty validation exception otherwise when posting Xml to the action. The client code: var req = (HttpWebRequest)WebRequest.Create(endPoint); req.Method =