Reputation: 3515
[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;
}
I cant see the userrequest and userresponse in my ServiceReference at the client. Why?
Upvotes: 0
Views: 1065
Reputation: 3515
I had a reference to the WCF Service application assembly which should not be there. After removing the reference I could see my Classes. Thanks
Upvotes: 1