是否有任何 WCF 配置工具可以使工作变得更轻松

发布于 2024-07-27 21:49:04 字数 468 浏览 12 评论 0原文

是否有任何工具不仅需要对每个配置选项和细微差别有深入而深入的了解,而且只需最少的输入即可设置应用程序。 类似于向导,根据这些简单的输入生成 XML 配置。 我不关心安全性,我只需要服务正常工作。 理想情况下,该工具也能够设置 IIS6,或者至少使用一组给定的选项,它会生成我需要在 IIS 中完成的步骤列表。

Microsoft 服务配置编辑器并不比直接编辑 XMl 更好。 我确实找到了一个具有正确想法的网站,但它无法解决我的简单安装问题。 (http://www.noemax.com/support/wcf_binding_configuration_wizard.html)。

有没有什么东西可以让一些约定在这座堆积如山的配置中发挥作用?

Are there any tools that go beyond requiring deep and intimate knowledge of every configuration option and nuance and will just setup an application with a minimum of inputs. Something like a wizard that produces the XML configuration based on those simple inputs. I don't care about security I just need the service to work. Ideally the tool would be able to setup IIS6 as well or at least with a given set of options it would produce a list of steps I needed to complete in IIS.

The Microsoft Service Configuration Editor is no better than direct editing of the XMl. I did find a web site that has the right idea but it wasn't able to solve my simple installation. (http://www.noemax.com/support/wcf_binding_configuration_wizard.html).

Is there anything out there that puts some convention into play over this mountain of configuration?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白日梦 2024-08-03 21:49:04

WCF 配置乍一看确实非常令人畏惧! 我喜欢您链接到的配置向导 - 为什么它对您来说不够好?

我现在不知道有什么工具可以解决您的问题并帮助您找出正确的配置 - 恐怕这实际上可以归结为学习诀窍并了解其来龙去脉。

基本上,我学到的是:甚至不要开始想象你可以做的所有事情 - 尝试专注于你应该做什么(以及你需要什么) )。

实际上,它可以归结为优秀书籍“Programming WCF” 作者:Juval Lowy:

  • Intranet 应用程序(使用 NetTcp 绑定、Windows 安全性)
  • Internet 应用程序(如果可能,请使用 wsHttp 绑定、用户名/密码或证书以确保安全)
  • 企业对企业应用程序(使用任何有意义的绑定,通过证书保证安全)
  • 队列消息传递(MSMQ)
  • 无安全应用程序(传统的 ASMX 支持,与“哑”Web 服务客户端互操作)

基本上,选择您需要的一个,然后从那里您就可以确定要做什么以及如何做。 我绝对推荐您阅读 Juval 的书 - 非常好的资源!

所以问题是:您的应用程序适合哪个类别? 基于此,您几乎可以从那里确定所需的一切。

另外,我观看了两个截屏视频,它们确实帮助我克服了 WCF 中的大量配置选项,并专注于真正重要的内容:

两者都让我很好地了解什么配置是真正需要的 - 以及什么只是无用的配置。

希望对一些人有所帮助!

马克

WCF configuration can look very daunting at first, indeed! I like that configuration wizard you linked to - why wasn't it good enough for you?

I don't know of any tool right now, that would solve your problem and help you figure out the proper configuration - it really boils down to learning the ropes and getting to know the ins and outs of it, I'm afraid.

Basically, what I've learned is : don't even start to imagine all the things you could do - try to focus on what you should do (and what you need).

Really, it boils down to about five scenarios as outlined in the excellent book "Programming WCF" by Juval Lowy:

  • intranet apps (use the NetTcp binding, Windows security)
  • internet apps (use the wsHttp binding if ever possible, username/pwd or certificates for security)
  • business-to-business apps (use whatever binding makes sense, secure by certificates)
  • queue message delivery (MSMQ)
  • no-security apps (legacy ASMX support, interop with "dumb" webservice clients)

Basically, pick the one you need, and from there, you're pretty much set as to what to do and how to do it. I would definitely recommend checking out Juval's book - excellent excellent resource!

So the question is: which category does your app fit in? Based on that, you can pretty much determine all that's needed from there.

Also, I watched two screencasts that really helped me get over the heaps of configuration options in WCF, and focus on what's really important:

Both gave me a good feel for what configuration is really needed - and what is just fluff.

Hope that helps some!

Marc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文