This is my class :
[DataContract]
public class UserIdParams
{
[DataMember]
public int UserId { get; set; }
[DataMember]
public List<int> ListUserId { get; set; }
}
it contains both a list of integer and an integer.
My goal is create the service WCF REST : GetUserByID to get list of users according to ids
[OperationContract]
[WebGet]
List<User> GetUserByID (UserIdParams userIdParams);
but as we know , we can't pass Array or complex types as input parameter in wcf rest ,
(and when I test it like that, I have this error:
In other hand , it worked fine for WCF SOAP.
So any idea how to resolve my problem to get all users with WCF REST and the parameter is an array ? thanks,