There is a lot that you could have done wrong with a WCF service, and there is simply not enough code here to establish what you did. I'll have to direct you to the Microsoft documentation to sort out your problem:
WCF Tutorial[
^]
There are lots of articles and videos that could help you understand your problem.