.netWCF

Change WCF service without impacting Client (Part-5)

If you wanted to change Interface name,you can change the WCF service without impacting client. For this you need to use “Name” property of service contract. We have created a WCF service in Part-3.Below is the link.
Create WCF Service

Let’s change the Interface name in IhelloService.cs.

The next step is you need to change the interface name in HelloService.cs.

Then build the solution and start the host. Now if you will run the client, Now you will get Error because the Interface name is changed.
So to avoid Client Impact, you need to add Name Property for the contract in IHelloService.cs like below and build solution.

Now Run the host and Test the CLient and it will work fine.

You may like below articles:
Create WebService and Remoting Service
Create WCF Service
WCF Service Implementing Multiple Contracts

© 2015, www.techkatak.com. All rights reserved.

One thought on “Change WCF service without impacting Client (Part-5)

Comments are closed.