REST, SOAP/WS-* and WCF概览

本文探讨了REST与WS-*(SOAP)两种Web服务架构风格的区别与应用场景。REST适用于数据导向的应用,如互联网上的创建/读取/更新/删除场景;而WS-*则更适合于需要事务处理和高级安全性的服务/方法导向应用。文中还提到了WCF如何在同一编程模型下支持这两种风格。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

很多地方提到REST vs. WS-* (SOAP), 今天google了一下并整理了一些观点,算是个速查链接:

David Chappell:
A RESTful approach is a natural for data-oriented applications that focus on create/read/update/delete scenarios. Lots and lots of apps fit this model, especially on the public Internet. A solution based on WS-* makes more sense for service/method-oriented applications, especially those that need more advanced behaviors such as transactions and more-than-basic security. (Doubt this last point? Look up "Security" in the index of the Richardson/Ruby book: Exactly one page number is listed.)
IBM guys' research:
use RESTful services for tactical, ad hoc integration over the Web (à la Mashup) and to prefer WS-* Web services in professional enterprise application integration scenarios with a longer lifespan and advanced QoS requirements.
WCF provides same programming model for REST and WS-*

Introduced as part of the .NET Framework 3.0, WCF enables developers to build services leveraging their present .NET Framework development skills. WCF combines and extends the capabilities of Microsoft's existing distributed systems technologies, including Enterprise Services, Net Peer, .NET Remoting, COM+, MSMQ, and ASMX to deliver a unified development experience.

With the .NET Framework 3.5 release, WCF added support for building REST style services. REST, an architectural style for building distributed hypermedia driven applications, involves building resource-oriented services by defining resources that implement uniform interfaces using standard HTTP verbs (GET, POST, PUT, and DELETE), and that can be located/identified by a URI.

A Brief Introduction to REST
A Brief Introduction to SOAP/WS-* (Making Sense of all these Crazy Web Service Standards)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值