Why does WCF wrap request/response types in another XML element, and how to prevent this?
问题 I have a simple echo service where I've defined one operation method and a pair of types for request/response: [ServiceContract(Name = "EchoService", Namespace = "http://example.com/services", SessionMode = SessionMode.NotAllowed)] public interface IEchoService { [OperationContract(IsOneWay = false, Action = "http://example.com/services/EchoService/Echo", ReplyAction = "http://example.com/services/EchoService/EchoResponse")] EchoResponse Echo(EchoRequest value); } The data types: