ASP.net Web 服务与 WCF [英] ASP.net Web Services versus WCF

查看:34
本文介绍了ASP.net Web 服务与 WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.net 桌面应用程序会将信息发送到中央服务器,可能会有成千上万个桌面应用程序向我的服务器发送信息.

A .net desktop application will send information to a central server, there will be potentially thousands and thousands of deskop apps sending info to my server(s).

数据会比较小.

.net Web 服务是否适合这种场景,还是 WCF 更适合?

Would .net web services be good for this scenerio or would WCF be better suited?

优点/缺点是什么?

推荐答案

我会使用基于 WCF REST 的服务,因为您将能够传输纯数据而无需 SOAP 标头(和其他信封废话)随基于 SOAP 的经典 .asmx 网络服务提供.

I'd go with a WCF REST-based service, because you'll be able to transmit pure data without the overhead of the SOAP header (and other envelope nonsense) that comes with the SOAP-based classic .asmx web service.

这篇关于ASP.net Web 服务与 WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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