Change WCF service without impacting Client – Easy WCF
Skip to content

Change WCF service without impacting Client

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.

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

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

The next step is to change the contract name defined in app.config

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.

© 2015, admin. All rights reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *