WCF VS ASPX webMethods的VS ASMX的webMethods [英] WCF vs ASPX webmethods vs ASMX webmethods

查看:177
本文介绍了WCF VS ASPX webMethods的VS ASMX的webMethods的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这样做的目的是建立一套网络服务,人们可以重用。这些服务大多与后端数据库创建互动,retreiving和处理数据。

The intent is to create a set of web services that people can reuse. These services mostly interact with a backend DB creating, retreiving and processing data.

我们要公开的服务,使人们可以用它来创建数据混搭和其他应用程序。

We want to expose services so that people can use to create data mashups and other applications.

终端用户网页,可以成为我们域内或我们的外域。对于外域的网页,我们计划推出,将配置中检索和显示数据的小部件。

End users are webpages that can be within our domain or outside our domain. For pages outside the domain we plan to release widgets that would be configured to retreive and display the data.

一个要求 - 应用程序应该在它能够处理的用户数量方面高度可扩展。

One requirement - application should be extremely scalable in terms of the number of users it can handle.

我们的code群是.NET,我们期待在ASPX webMethods的(或ASHX),webMethods的ASMX和WCF(开始于WCF读了)。

Our code base is .net and we are looking at ASPX webmethods (or ASHX), ASMX webmethods and WCF (starting to read up on WCF).

在安全/接入方面,我发现维护的SessionID,成员是在所有三个可行的。 WCF似乎有点复杂的设置。我不能立即看到ASMX的价值时,我们可以得到一切只是使用ASPX一个WebMethod(稍加调整)来完成。

In terms of security/access I found that maintaining sessionid, memberships is doable in all three. WCF seems a bit complicated to setup. I could not immediately see the value of asmx when we can get all done just using a webmethod in aspx (with a little tweaking).

此外,假设与ASP.NET MVC2我也许能得到干净的网址,以及这些webMethods的。

Also, assuming that with the ASP.NET MVC2 I might be able to get clean urls as well for these webmethods.

问题

哪一个将是最有效的性能可扩展性方面
 任何理由,我应该选择WCF或ASMX?

Which one will be the most effective in terms of performance and scalability? Any reason why I should choose WCF or ASMX?

感谢您抽出通过这篇文章,道歉为幼稚的问题看,因为我是新来的.NET的时间。

Thank you for taking the time to read through this post and apologies for the naive questions since I am new to .net.

修改我有点明白,WCF是要走的路。只是为了了解技术的发展这将是很好,如果有人能在为什么ASPX的WebMethod是从ASMX不同的,当类似的事情(除了发现)可以由双方来完成抛亮。在ASPX webMethods的可制成以返回在其它格式(明文,JSON)的数据。此外,我们似乎可以用ASHX构建RESTful服务。再次道歉了幼稚的问题。

EDIT I kind of understand that WCF is the way to go. Just to understand the evolution of the technologies it would be good if someone can throw light on why a aspx webmethod is different from an asmx when similar things (apart from discovery) can be accomplished by both. The aspx webmethods can be made to return data in other formats (plaintext, json). Also, it seems that we can build restful services using ashx. Apologies again for the naive questions.

推荐答案

您应该使用WCF中的.Net开发Web服务。 WCF是安全很多选择,传输协议,系列化,功能扩展等原始性能高度可配置也显著越高。 WCF也正在积极开发和版本3.5和4被添加了许多新功能,也有像WCF数据服务和WCF RIA服务的变化。 WCF 4.0 也有更好的休息和JSON支持,你可以在ASP.Net / JQuery的直接使用

You should use WCF for developing webservices in .Net. WCF is highly configurable with many options for security, transport protocols, serialization, extensions etc. Raw performance is also significantly higher. Also WCF is being actively developed and many new features being added in version 3.5 and 4. There are also variations like WCF data services and WCF RIA services. WCF 4.0 also has better REST and JSON support which you can directly use in ASP.Net / JQuery.

这篇关于WCF VS ASPX webMethods的VS ASMX的webMethods的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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