asp.net web 方法和 wcf 服务有什么区别? [英] What is the difference between an asp.net web method and a wcf service?

查看:28
本文介绍了asp.net web 方法和 wcf 服务有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 .Net 的新手,不明白其中的区别.有人能指出我正确的方向吗?

I'm new to .Net and do not understand the difference. Can someone point me in the right direction?

推荐答案

ASP.NET Web 服务的开发目的是构建使用 HTTP 上的简单对象访问协议 (SOAP) 发送和接收消息的应用程序.

ASP.NET Web services was developed for building applications that send and receive messages by using the Simple Object Access Protocol (SOAP) over HTTP.

WCF 用于使 .NET Framework 应用程序能够与其他软件实体交换消息.默认使用 SOAP,但消息可以采用任何格式,并使用任何传输协议进行传送.

WCF is for enabling .NET Framework applications to exchange messages with other software entities. SOAP is used by default, but the messages can be in any format, and conveyed by using any transport protocol.

您可以将 ASP.NET Web 服务视为 WCF 服务的子集.

You can view ASP.NET web services as a subset of WCF services.

这里是比较两个框架的链接.

Here is a link comparing the two frameworks.

这篇关于asp.net web 方法和 wcf 服务有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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