[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中看到userrequest和userresponse。为什么呢?
答案 0 :(得分:1)
我有一个WCF服务应用程序程序集的引用,它不应该存在。删除引用后,我可以看到我的类。 感谢