最佳做法,以德为precate WCF服务 [英] Best Practices to Deprecate WCF Services

查看:253
本文介绍了最佳做法,以德为precate WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有attibute或类似的机制来通知Web服务消费者的服务/工作合同已经去precated?我有一组WCF服务,需要更新。作为此更新的一部分,我想简化一些原有的设计。我打算离开现有业务的地方,但我想以某种方式通知最终用户,他们已经pcated有利于新业务/服务去$ P $。什么是实现这一目标的最佳做法是什么?

Is there any attibute or similar mechanism to inform a web service consumer that a Service/Operation contract has been deprecated? I have a set of WCF services that need updating. As part of this update I would like to simplify some of the original design. I plan on leaving the existing operations in place but I would like to somehow inform the end users that they have been deprecated in favor of the new operation/service. What are the best practices for accomplishing this?

推荐答案

我曾在金融服务一段时间,我们依赖于一个供应商的服务(他们没有WCF为主,但服务仍然),以获得核心财务信息银行系统。版本控制等都是好的,保持了向后兼容性,从而确保客户端不破是一项崇高的努力,一个应该受到赞扬。然而,在关键的释放精神他们总是依靠的良好的老式更改文档表示,他们的服务信息进行了改变,这反应就必须消除某些领域,建议的替代方案。他们会使用的措辞,如消息YYYXXX回应场将于在未来的版本将退役,请不要XYZABC。

I worked in Financial Services for a while and we relied on a vendors services (they were not WCF based, but services nonetheless) to get financial information from the core banking systems. Versioning etc are all good and maintaining backward compatibility so that clients don't break is a noble effort and one that should be commended. However, in the spirit of key releases they would always rely on a good old fashioned change document indicating which of their service messages were changing, which responses would have certain fields eliminated and the suggested alternative. They would use wording such as "xxx" response field of message "yyy" is slated to be retired in a future release, please do "xyzabc".

如果你有一个适当的管理/ ESB解决方案,您将最有可能知道谁是你的消费者,这使得它一点点更容易传达出这样的信息。我们的供应商合作伙伴通常都给预告2发布之后,改变将生效,并且客户将打破,但金融交易机制的时候,你拿的变化另行通知,迟早实现它们。只是我的$ 0.02

If you have a governance/ESB solution in place, you will most likely know who your consumers are, which makes it a tad easier to convey this information. Our vendor partner usually gave advance notice for 2 releases after which the changes would take effect and clients would break, but when financial transactions are involved, you take notice of the changes and implement them sooner than later. Just my $0.02.

这篇关于最佳做法,以德为precate WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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