向网络服务添加方法:旧客户端是否需要更新网络引用? [英] Adding methods to the webservice: do old clients need to update web references?

查看:21
本文介绍了向网络服务添加方法:旧客户端是否需要更新网络引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ProductA 使用我们唯一的 Web 服务,它是与 ProductA 不同的部署.我们将两者都部署到生产环境中.

ProductA uses our only web service, which is a separate deployment from ProductA. We deploy both to production.

稍后,我们将编写 ProductB.在这项工作中,我们向我们唯一的 Web 服务添加了一个新方法.ProductA 发布时,WSDL 中并没有这个新方法.在开发过程中,我们不会对 ProductA 进行任何更改.

Later, we're writing ProductB. During that effort, we add a new method to our only web service. That new method wasn't in the WSDL when ProductA shipped. We make no changes to ProductA in development.

当我们将 ProductB 部署到生产时,我们还部署(到生产)我们唯一的网络服务的新版本(到 ProductA 期望找到它的同一端点 URL).我们不会将 ProductA 重新部署到生产环境中.

When we deploy ProductB to production, we also deploy (to production) the new version of our only web service (to the same endpoint URL where ProductA is expecting to find it). We don't re-deploy ProductA to production.

我们唯一的 Web 服务的 WSDL 在生产中已更改,但 ProductA 使用的方法的签名未更改.它们仍在 WSDL 中.

The WSDL for our only web service has changed in production, but the signatures of the methods being consumed by ProductA have not changed. They're still in the WSDL.

ProductA 是否会因为我们以这种方式升级我们唯一的网络服务而出现任何问题?

Will ProductA have any problems due to our upgrading our only web service in this way?

如果 Web 服务的更改方式使原始客户端的方法保持不变,您是否必须升级 Web 服务的客户端?

Do you have to upgrade a client of a webservice if the webservice changed in such a way that left the original client's methods unchanged?

推荐答案

没有.只要您不使用产品 A 使用的方法,您就不必更新产品 A 的 WebReference 副本.

No. As long as you left the methods that Product A uses alone, you do not have to update Product A's copy of the WebReference.

这篇关于向网络服务添加方法:旧客户端是否需要更新网络引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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