WCF 服务而不是 ASMX Web 服务?
我正在编写一个 SOAP 服务器,它将充当外部客户端的端点。外部客户端需要 SOAP 1.1。我将在 SOAP 消息中嵌入业务对象,并将它们传递给内部应用程序,获取响应并用 SOAP 消息响应永恒的客户端。
几年前我做了基于 ASMX 的传统 Web 服务。现在,我一直在探索 WCF 服务并想知道采取的最佳方法。
1) WCF 是否应该被视为 ASMX Web 服务的超集?
2) 是否有任何理由仍然使用 ASMX 而不是 WCF 来编写新的 Web 服务?
3) 与 SOAP 扩展相比,WCF 是否提供了更好的工具来处理 SOAP 消息?
4) 我是否可以使用 WCF 限制与 SOAP 1.1 的通信,就像在 ASMX 中更改 web.config 一样?
5) WCF 是否有一种简单的方法来记录或查看访问服务的请求,而无需求助于 SOAP 扩展之类的东西?
抱歉,我的问题不是很具体;仍在尝试了解我需要知道的内容...
使用 VS2008、Windows Server
2008。Chris
I'm writing a SOAP Server that will act as an endpoint for an external client. The external client expects SOAP 1.1. I'll be taking embedded business objects in the SOAP messages and passing them to an internal application, getting responses back and responding with SOAP messages to the eternal client.
I did the traditional ASMX based web services several years ago. Now, I've been exploring WCF Services and wondering the best approach to take.
1) Should WCF be considered a superset of ASMX web services?
2) Is there any reason to still write new web services using ASMX instead of WCF?
3) Does WCF provide better facilities for working with SOAP messages, as opposed to SOAP Extensions?
4) Can I restrict communication to SOAP 1.1 using WCF, the way I can with a web.config change in ASMX?
5) Does WCF have an easy way to log or review the requests that hit the service without resorting to something like SOAP extensions?
Sorry my questions are not very specific; still trying to get handle on what I need to know...
Using VS2008, Windows Server 2008.
Chris
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您使用 WCF。如果将 WCF 服务配置为使用 basichttpbinding,它将作为 SOAP 1.1 服务工作。
I would recommend that you use WCF. If you configure your WCF service to use basichttpbinding, it will work as a SOAP 1.1 service.