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

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

We have an existing ServiceContract

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


        
5条回答
  •  余生分开走
    2020-12-31 08:45

    No, I wouldn't expect that - adding new functionality / new service methods that does NOT alter any of the existing methods / function calls will not affect "old" clients. Of course, they won't know about the new methods until their proxies have been recreated from metadata, or adapted manually.

    But existing calls should be unaffected, as long as their signature (the data they exchange) stays the same.

    Marc

提交回复
热议问题