WCF WebInvoke Method POST
问题 I have a wcf service, and I want to test posting data to it. But the parameter of my function never gets any values. [OperationContract] [WebInvoke(UriTemplate = "TestPost", Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest)] int Test(string value); public int Test(string value) //Value stays null { return 0; } The JSON request I send, build using Fiddler2 http://localhost:49633/Service1.svc/TestPost