WCF REST: What is it expecting my XML to look like in requests?
问题 I have the following method in my WCF service: [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Xml, RequestFormat = WebMessageFormat.Xml)] public int GetOne(string param1, string param2) { return 1; } I am sending xml from a Flex application, and it takes an object that looks like this: { param1: "test", param2: "test2" } and turns it into the following request: POST http://localhost:8012/MyService.svc/GetOne HTTP/1.1