使用 IHttpHandler 和 webservice 之间的区别

发布于 2024-08-16 17:09:42 字数 67 浏览 1 评论 0原文

我需要了解这两个实现何时使用。使用其中一种而不是另一种的动机是什么,这些可以互换使用吗?

提前致谢 迪伊

i need to understand when these two implementations used . what could be the motive of using one over other , can these be leveraged interchangeably.

Thanks in Advance
Dee

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

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

发布评论

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

评论(1

只是在用心讲痛 2024-08-23 17:09:42

IHttpHandler 是一个“自己动手”的解决方案。您将自己处理所有事情,并且负责互操作性等事情。

使用 Web 服务(WCF Web 服务),您将获得序列化/反序列化、基础设施以及客户端轻松使用您的服务的能力。

对于“服务”类型的操作,请使用 Web 服务。如果您的任务不适合,请考虑 IHttpHandler

An IHttpHandler is a "do it yourself" solution. You'll be handling everything yourself, and you'll be responsible for things like interoperability.

Using a web service (a WCF web service), you'll get serialization / deserialization, an infrastructure, and an ability for a client to easily consume your service.

For a "service"-type operation, use a web service. If your task doesn't fit that, then consider IHttpHandler.

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