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.
s*u
5 楼
有这方面的专家么?查文献的结果好像很矛盾。一些说是endodermal, 一些说是 ectodermoral (neural creast in origin). 现在有定论了么?
【在 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.
【在 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.
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.
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?
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