我们可以使用WEB API代替WCF(只有Http) [英] Can we use WEB API in place of WCF (Only Http)

查看:91
本文介绍了我们可以使用WEB API代替WCF(只有Http)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用javacript开发HTML5和MVVM模式的Web应用程序。没有.cs代码。

我想在我的应用程序中使用WebApi服务,即需要直接从javascript调用。



如何确保我的web api是安全的,因为我直接从javascript调用。

(因为我没有使用任何C#代码,即提高性能我们避免回发)



谢谢

I am developing web application with HTML5 and MVVM pattern with javacript. no .cs code.
And i want to consume WebApi services in my application i.e. need to call directly from javascript.

How to ensure that my web api is secure as i am calling from javascript directly.
(as i am not using any C# code i.e. to improve performance we are avoiding post backs)

Thanks

推荐答案

请看一下这篇优秀文章:

WCF或ASP.NET Web API?关于这个问题的两分钱 [ ^ ]

也许这可以帮助您做出正确的决定。
Please have a look at this excellent article:
WCF or ASP.NET Web APIs? My two cents on the subject[^]
Maybe this will help you to make the right decision.


这篇关于我们可以使用WEB API代替WCF(只有Http)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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