Model always null on XML POST
问题 I\'m currently working on an integration between systems and I\'ve decided to use WebApi for it, but I\'m running into an issue... Let\'s say I have a model: public class TestModel { public string Output { get; set; } } and the POST method is: public string Post(TestModel model) { return model.Output; } I create a request from Fiddler with the header: User-Agent: Fiddler Content-Type: \"application/xml\" Accept: \"application/xml\" Host: localhost:8616 Content-Length: 57 and body: <TestModel>