In this article, you will learn how to use a WCF Service without adding service reference.
Let’s first establish what the purpose of this code is. For this article, the purpose of the code is to use a WCF Service without adding a Proxy or Service Reference in ASP.NET MVC application. There is a way to do this - by using the Service Model Metadata Utility Tool(SVCUTIL.EXE). But, we have one better solution also; i.e., by writing our code. First of all, we need to place our Service Contracts and Data Contracts into a shared library (WCF Service Library) which can be consumed by our client application. Step 1 Create a New Project (WCF Service Library)
Step 2 Add a new project to Solution Explorer
Step 3 It's the final step to access WCF Service without adding a proxy or Service Reference in ASP.NET MVC application.
That's it; it's all been done successfully.
Essential WCF Practical Implementation