WCF 4, JSONP, and jQuery cause parsererror
问题 I've tried nearly everything I can think of, but I'm still running into issues with my ajax calls to a WCF service. My WCF service has a method like below: //[WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "POST")] [WebGet] public string Test(int value) { return string.Format("You entered: {0}", value); } As mentioned on Twitter by Patrick Thomas, I've also tried using [WebGet(BodyStyle = WebMessageBodyStyle.Wrapped)] and [WebGet(BodyStyle = WebMessageBodyStyle.WrappedResponse)]