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 | |
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 |