简体   繁体   English

通过标准WCF服务的RESTful WCF服务

[英]RESTful WCF service over standard WCF Service

What is the main difference between RESTful WCF service over standard WCF service? RESTful WCF服务与标准WCF服务之间的主要区别是什么? I am not sure where and why to use it and are there any extra advantages of it? 我不知道在哪里以及为什么要使用它并且它有什么额外的优点吗?

For our current project we are going to use ASP.net MVC, so will RESTful WCF be any helpful from that point of view? 对于我们当前的项目,我们将使用ASP.net MVC,那么RESTful WCF从这个角度来看是否有用?

Are there any specific disadvantages of using RESTful WCF service?? 使用RESTful WCF服务有什么特别的缺点吗?

Thanks a lot.. 非常感谢..

The difference is how clients access your service. 不同之处在于客户访问您的服务的方式。 Normally, a WCF service will use SOAP, but if you build a REST service clients will be accessing your service with a different architectural style (calls, serialization like JSON, etc). 通常,WCF服务将使用SOAP,但是如果您构建REST服务,客户端将使用不同的体系结构样式(调用,序列化,如JSON等)访问您的服务。 Here's a terrific white paper on RESTful WCF. 这是关于RESTful WCF的一篇很棒的白皮书 Lots more info on REST & WCF here . 有关REST和WCF的更多信息,请点击此处

In terms of downside, you lose much of the work that has been done on SOAP header specifications (WS-* like WS-Security, WS-ReliableMessaging, WS-AtomicTransactions for example). 就缺点而言,您将失去在SOAP标头规范(WS- *,如WS-Security,WS-ReliableMessaging,WS-AtomicTransactions等)上完成的大部分工作。 Also, SOAP is transport neutral whereas REST presupposes HTTP. 此外,SOAP是传输中立的,而REST则预先假定HTTP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM