Restful WCF POST issue with application/json content type request
问题 I've configured a RESTful WCF with the following POST "operation": [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "/Test", BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json)] void PostTest(Stream stream); In my web.config, I've configured the following: <service name="MyTest.TestSvc" behaviorConfiguration="MyTest.TestBehavior" > <endpoint address="" behaviorConfiguration="MyBehavior" binding="webHttpBinding" contract="MyTest.ITestSvc"/> <endpoint