Web服务,wcf servce和wcf数据服务之间的区别? [英] Difference between web service,wcf servce and wcf data service?

查看:106
本文介绍了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服务有什么区别? [ ^ ]



http://msdn.microsoft.com/en-us/library/bb907578.aspx [ ^ ]



http://social.msdn.microsoft.com/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?[^]

http://msdn.microsoft.com/en-us/library/bb907578.aspx[^]

http://social.msdn.microsoft.com/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.


我引用您的外观>> http://dotnet.dzone.com/articles/10-differences-between-wcf-and [ ^ ] for更多详情。



希望它可以帮到你。
I reference you to take a look >> http://dotnet.dzone.com/articles/10-differences-between-wcf-and[^] for more detail.

Hope it can help you.


这篇关于Web服务,wcf servce和wcf数据服务之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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