由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 选择 WCF 还是 ASP.NET WebApi
相关主题
哪个框架最适合快速开发手机app后台的web service?运算量比较The rewards of running server-side JavaScript revealed
发现ramdisk不错,多个进程通信用文件就可以了,简单看到这么一段
.net mvc & web api 架构 求建议和意见??scala支持Restful web service的问题
google maps API other than Javascript?HTML form: 用输入的ZIP CODE自动产生City和State名字
如果没有api,有什么办法写网站客户端呢?好了,现在可以发布我的发明之一了,物联网App Engine
HTML5 for .NET Developers关于Kafka,一个log数据处理的问题
Web Service怎么让多个api call share 同一个 connection ??D3.js JSON data
问个设计问题ip问题
相关话题的讨论汇总
话题: wcf话题: webapi话题: api话题: web话题: intranet
进入Programming版参与讨论
1 (共1页)
s**m
发帖数: 1564
1
client side:
.NET web applications (on intranet),
windows desktop application (on intranet or internet),
iOS App (on internet)
potentially cloud app,
选择 WCF 还是 ASP.NET WebApi 来开发 web services, and API?
Thanks.
h******k
发帖数: 388
2
asp.net 已经要被淘汰了吧

【在 s**m 的大作中提到】
: client side:
: .NET web applications (on intranet),
: windows desktop application (on intranet or internet),
: iOS App (on internet)
: potentially cloud app,
: 选择 WCF 还是 ASP.NET WebApi 来开发 web services, and API?
: Thanks.

n*w
发帖数: 3393
3
没有吧。asp.net是个大篮子。里面的Web form可能用的人在减少。

【在 h******k 的大作中提到】
: asp.net 已经要被淘汰了吧
B********r
发帖数: 397
4
.net 早就被淘汰了
N********n
发帖数: 8363
5

用不用JSON? 用的话走纯HTTP路线的WebAPI更合适。WCF支持TCP接口,适合
INTRANET接口,如果INTRANET APP允许使用TCP的情况下。

【在 s**m 的大作中提到】
: client side:
: .NET web applications (on intranet),
: windows desktop application (on intranet or internet),
: iOS App (on internet)
: potentially cloud app,
: 选择 WCF 还是 ASP.NET WebApi 来开发 web services, and API?
: Thanks.

c********1
发帖数: 5269
6
.net is still alive.
depend on company and application.

【在 B********r 的大作中提到】
: .net 早就被淘汰了
s**m
发帖数: 1564
7
Thanks.
We have several small web MVC applications using web API and JSON.
We will have a lot more new applications and some will be big and complex.
So I am wondering a few things:
1. Does web API support transferring binary data?
2. how does web API support reliable message transfer when network is not
good?
3. how does web API support message security?
4. Can I move web API project out from those web applications and put them
into a separate centralized library location like what WCF can do?
Thanks.

【在 N********n 的大作中提到】
:
: 用不用JSON? 用的话走纯HTTP路线的WebAPI更合适。WCF支持TCP接口,适合
: INTRANET接口,如果INTRANET APP允许使用TCP的情况下。

N********n
发帖数: 8363
8

1. There's BSON support for binary data tho IDK how efficient it is.
2. "Reliable message" sounds like a TCP thing or at least some
"WS-Reliable" SOAP-based protocols. You may have to go w/ WCF here.
3. Message security is usually done w/ HTTPS & SSL available for
both WCF and Web API.
4. It's like supporting the plain old WebService. You could put it
all in one module or split them based on different functionality.
I guess you might have a mixture of WebAPI and WCF code. WebAPI for
simplicity and maximum reach. WCF for advanced features (perhaps at
the expense of reach). Check this url for comparison:
https://msdn.microsoft.com/en-us/library/jj823172(v=vs.110).aspx

【在 s**m 的大作中提到】
: Thanks.
: We have several small web MVC applications using web API and JSON.
: We will have a lot more new applications and some will be big and complex.
: So I am wondering a few things:
: 1. Does web API support transferring binary data?
: 2. how does web API support reliable message transfer when network is not
: good?
: 3. how does web API support message security?
: 4. Can I move web API project out from those web applications and put them
: into a separate centralized library location like what WCF can do?

c********1
发帖数: 5269
9
1 Implements REST-style APIs with WebAPI.
2. WCF code if REST-style APIs can not meet your needs.

【在 N********n 的大作中提到】
:
: 1. There's BSON support for binary data tho IDK how efficient it is.
: 2. "Reliable message" sounds like a TCP thing or at least some
: "WS-Reliable" SOAP-based protocols. You may have to go w/ WCF here.
: 3. Message security is usually done w/ HTTPS & SSL available for
: both WCF and Web API.
: 4. It's like supporting the plain old WebService. You could put it
: all in one module or split them based on different functionality.
: I guess you might have a mixture of WebAPI and WCF code. WebAPI for
: simplicity and maximum reach. WCF for advanced features (perhaps at

N********n
发帖数: 8363
10

Nice summary.

【在 c********1 的大作中提到】
: 1 Implements REST-style APIs with WebAPI.
: 2. WCF code if REST-style APIs can not meet your needs.

s**m
发帖数: 1564
11
thank you both, NeverLearn & cckyle2001
1 (共1页)
进入Programming版参与讨论
相关主题
ip问题如果没有api,有什么办法写网站客户端呢?
来看一个实际问题吧HTML5 for .NET Developers
腾讯开源tcp ip stack, f-stack。有用过的么?Web Service怎么让多个api call share 同一个 connection ??
json是一种革命性的创造问个设计问题
哪个框架最适合快速开发手机app后台的web service?运算量比较The rewards of running server-side JavaScript revealed
发现ramdisk不错,多个进程通信用文件就可以了,简单看到这么一段
.net mvc & web api 架构 求建议和意见??scala支持Restful web service的问题
google maps API other than Javascript?HTML form: 用输入的ZIP CODE自动产生City和State名字
相关话题的讨论汇总
话题: wcf话题: webapi话题: api话题: web话题: intranet