Use parameter “params string[]” in WCF Rest endpoint
问题 I would like to define an OperationContract, which I can pass any number of string parameters. The values should be interpreted as an array of string. Is there any possibility to use this type of parameter in an OperationContract and define this in the UriTemplate? [ServiceContract] public interface IRestService { [OperationContract] [WebGet(UriTemplate = "operations/{values}")] void Operations(params string[] values); } 回答1: You should not do this on a GET operation. GET operations support