Does adding a method to a WCF ServiceContract break existing clients?

前端 未结 5 923
眼角桃花
眼角桃花 2020-12-31 08:27

We have an existing ServiceContract

[ServiceContract(Namespace = \"http://somesite.com/ConversationService\")]
public interface IConversationService
{
               


        
5条回答
  •  感情败类
    2020-12-31 08:50

    I just tested this with a WCF client Windows app (UWP) and it continued to work after updating the WCF service application. So no: as previously answered, your clients will not break when you add a method.

    I thought it was worth mentioning, however, how easy it is to update your service clients with Visual Studio 2015:

    1. Make sure your WFC service is running.

    2. Simply go to the Solution Explorer,

    3. Expand Service References

    4. Right-click on your service reference

    5. Click Update Service Reference

    6. If you get an error message, repeat the last step. I had to try a few times for some reason.

提交回复
热议问题