[ServiceContract(SessionMode = SessionMode.Required)]
public interface IActionService
{
[OperationContract]
MovieResponse GetReviews(MovieRequest request);
[OperationContract]
UserResponse GetUsers(UserRequest request);
[OperationContract]
UserResponse InsertUser(UserRequest request);
}
[DataContract]
public class UserRequest
{
[DataMember]
public int userId;
[DataMember]
public User user;
}
我在客户端的 ServiceReference 中看不到用户请求和用户响应。为什么?