Web服务,wcf servce和wcf数据服务之间的区别?

编程入门 行业动态 更新时间:2024-10-28 03:22:58
本文介绍了Web服务,wcf servce和wcf数据服务之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在visual studio 2010中,我添加了一个网站,然后当我添加新项目时,我发现了三个项目 的web服务.Web服务,WCF服务,最后一个是WCF数据服务。 它们之间有什么区别,在哪里可以使用?

In visual studio 2010,I added a website and then when i add new item I found three items of web services.Web Service , WCF Service and the last one is WCF Data Service. What's the difference between them and which to be used where?

推荐答案

查看相同的讨论 WCF与Web服务有什么区别? [ ^ ] msdn.microsoft/en-us/library/bb907578.aspx [ ^ ] social.msdn.microsoft/Forums/en-US/687426d9-709f-4e73-8c4c-dd3630f006e7/wcf-data-service-or-wcf-service?forum=adodotnetdataservices [ ^ ] See the same discussion What's the Difference between WCF and Web Services?[^] msdn.microsoft/en-us/library/bb907578.aspx[^] social.msdn.microsoft/Forums/en-US/687426d9-709f-4e73-8c4c-dd3630f006e7/wcf-data-service-or-wcf-service?forum=adodotnetdataservices[^]

1.The Web服务是在.NET中创建Web服务的简单方法,甚至可以从.NET 1.0版开始使用。它们主要用于通过Web提供对应用程序逻辑的访问,并且必须安装到IIS中。 2.WCF服务是新的通信方式.NET应用程序统一为单一技术的下一个旧技术:Web服务,Windows消息传递,Windows重新安装等。它们非常易于配置,提供强大的安全性,可以托管到IIS或简单的Windows服务(安装在服务器上) )。我强烈建议你使用它! 3.WCF数据服务(以前称为ADO.NET数据服务)使用开放数据协议(OData)来使用REST命令通过Web公开和使用数据。 Visual Studio使您可以更轻松地使用ADO.NET Entity Framework数据模型创建基于OData的服务。 1.The Web Services are the simple way of creating web services in .NET and were available for using even from the .NET version 1.0. They are used mainly to provide access to the application logic over the web, and must be installed into IIS. 2.The WCF Services are the new way of communication between .NET applications that unify into one single technologies the next old technologies: Web Services, Windows Messaging, Windows Remounting, etc. They are very configurable, provide strong security and can be hosted into IIS or into a simple windows service (installed on the servers). I strongly recommend you to use this! 3.WCF Data Services (formerly known as "ADO.NET Data Services") use the Open Data Protocol (OData) to expose and consume data over the Web by using the REST commands. Visual Studio makes it easier for you to create an OData-based service by using an ADO.NET Entity Framework data model.

我引用您的外观>> dotnet.dzone/articles/10-differences-between-wcf-and [ ^ ] for更多详情。 希望它可以帮到你。 I reference you to take a look >> dotnet.dzone/articles/10-differences-between-wcf-and[^] for more detail. Hope it can help you.

更多推荐

Web服务,wcf servce和wcf数据服务之间的区别?

本文发布于:2023-10-07 17:51:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1470087.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:区别   数据   Web   wcf   servce

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!