向WCF服务中再添加一个方法或操作合同. [英] Add one more method or operation contract to a WCF Service.

查看:130
本文介绍了向WCF服务中再添加一个方法或操作合同.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在开发人员正在使用的WCF服务中创建了一个终结点.如果我再添加一种方法或操作合同并添加/更新端点,那么开发人员可以访问此新创建的端点吗?
如果没有,为什么? (为什么叫SOA?)

I have created an endpoint in a WCF service that developers are using. If I add one more method or operation contract and add/update the endpoint, can the developers access this newly created endpoint?
If not, why? (Why is this called SOA?)

推荐答案

是的,只要使用的代理根据新的服务合同重新约定,他们就可以访问它. >
如果开发人员通过原始代理访问,则他们将无法访问,因为代理不知道所做的更改.
更改现有服务更为棘手,因为某些更改会破坏现有代理:

http://msdn.microsoft.com/en-us/library/ms731060.aspx [ ^ ]
Yes, they can access it, as long as the proxy they use is renegerated against the new service contract.

If the developers access via the original proxy, they won''t be able to as the proxy is unaware of the changes.
Changing exisiting services is more tricky, as some changes break the existing proxies:

http://msdn.microsoft.com/en-us/library/ms731060.aspx[^]


这篇关于向WCF服务中再添加一个方法或操作合同.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆