WCF 是提高了标准还是仅仅提高了复杂度? [英] Does WCF raise the bar or just the complexity level?

查看:30
本文介绍了WCF 是提高了标准还是仅仅提高了复杂度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我理解 WCF 提供的三部分服务/主机/客户端模型的价值.但它只是我还是看起来像 WCF 采取了一些非常直接和直接的(ASMX 模型)并把它弄得一团糟?

I understand the value of the three-part service/host/client model offered by WCF. But is it just me or does it seem like WCF took something pretty direct and straightforward (the ASMX model) and made a mess out of it?

是否有替代使用 SvcUtil 的命令行回溯生成代理的方法?使用 ASMX 服务自动提供测试工具;今天有 WCF 的好选择吗?

Is there an alternative to using SvcUtil's command line step back in time to generate the proxy? With ASMX services a test harness was automatically provided; is there a good alternative today with WCF?

我很欣赏 WS* 内容与 WCF 更紧密地集成,并希望在那里为 WCF 找到一些回报,但是天哪,否则我很困惑.

I appreciate that the WS* stuff is more tightly integrated with WCF and hope to find some payoff for WCF there, but geeze, otherwise I'm perplexed.

此外,WCF 可用的书籍状态充其量是糟糕透顶的.Juval Lowy 是一位出色的作者,他写了一本很好的 O'Reilly 参考书Programming WCF Services",但它对现在学习使用 WCF 的作用不大(无论如何对我来说).那本书的前身(作为教程组织得更好一些,但不多)是 Michele Leroux Bustamante 的 Learning WCF.它有很好的地方,但已经过时了,相应的网站也不见了.

Also, the state of books available for WCF is abysmal at best. Juval Lowy, a superb author, has written a good O'Reilly reference book "Programming WCF Services" but it doesn't do that much (for me anyway) for learning now to use WCF. That book's precursor (and a little better organized, but not much, as a tutorial) is Michele Leroux Bustamante's Learning WCF. It has good spots but is outdated in place and its corresponding Web site is gone.

除了继续 Google the bejebus 之外,你还有很好的 WCF 学习参考吗?

Do you have good WCF learning references besides just continuing to Google the bejebus out of things?

推荐答案

好的,我们开始吧.首先,Michele Leroux Bustamante 的书已经针对 VS2008 进行了更新.这本书的网站没有消失.它现在已经启动,并且有大量很棒的 WCF 信息.在该网站上,她为她书中的所有示例提供了与 VS2008 兼容的更新代码.如果您从亚马逊订购,您将获得更新的重印本.

Okay, here we go. First, Michele Leroux Bustamante's book has been updated for VS2008. The website for the book is not gone. It's up right now, and it has tons of great WCF info. On that website she provides updated code compatible with VS2008 for all the examples in her book. If you order from Amazon, you will get the reprint which is updated.

WCF 不仅仅是 ASMX 的替代品.当然它可以(并且做得很好)取代 ASMX,但真正的好处是它允许您的服务自托管.WSE 的大部分功能从一开始就已经融入其中.该框架具有高度可配置性,而且通过多种协议为多个端点提供服务的能力令人惊叹,IMO.

WCF is not only a replacement for ASMX. Sure it can (and does quite well) replace ASMX, but the real benefit is that it allows your services to be self-hosted. Most of the functionality from WSE has been baked in from the start. The framework is highly configurable, and the ability to serve multiple endpoints over multiple protocols is amazing, IMO.

虽然您仍然可以从添加服务引用"选项生成代理类,但这不是必需的.你真正需要做的就是复制你的 ServiceContract 接口并告诉你的代码在哪里可以找到服务的端点,就是这样.您可以使用很少的代码从服务中调用方法.使用此方法,您可以完全控制实施.无论您选择哪种方法来生成代理类,Michele 在她关于该主题的优秀系列网络广播中都展示并使用了这两种方法.

While you can still generate proxy classes from the "Add Service Reference" option, it's not necessary. All you really have to do is copy your ServiceContract interface and tell your code where to find the endpoint for the service, and that's it. You can call methods from the service with very little code. Using this method, you have complete control over the implementation. Regardless of the method you choose to generate a proxy class, Michele shows both and uses both in her excellent series of webcasts on the subject.

Michele 有很多很棒的资料,我建议您查看她的网站.以下是一些在我学习 WCF 时对我非常有帮助的链接.我希望您会逐渐意识到 WCF 的真正强大之处,以及实现起来是多么容易.学习曲线有点陡峭,但您的时间投资回报非常值得:

Michele has tons of great material out there, and I recommend you check out her website(s). Here's some links that were incredibly helpful for me as I was learning WCF. I hope that you'll come to realize how strong WCF really is, and how easy it is to implement. The learning curve is a little bit steep, but the rewards for your time investment are well worth it:

我建议您至少观看 Michele 的 1 个网络广播.她是一位非常有效率的演讲者,而且在谈到 WCF 时,她显然非常博学.她在揭开 WCF 内部运作的神秘面纱方面做得非常出色.

I recommend you watch at least 1 of Michele's webcasts. She is a very effective presenter, and she's obviously incredibly knowledgeable when it comes to WCF. She does a great job of demystifying the inner workings of WCF from the ground up.

这篇关于WCF 是提高了标准还是仅仅提高了复杂度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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