欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

WCF REST Configuration for ASP.NET AJAX and

系統 4148 0

該文請參考 http://www.west-wind.com/WebLog/posts/310747.aspx

If you've been thinking about using ASP.NET Ajax in combination with WCF, life got a lot easier with .NET 3.5 and the new REST support. The webHttp binding along with the ASP.NET AJAX specific version makes it easy to use WCF instead of ASMX services with ASP.NET AJAX.

A valid question to ask though is: Do I need to use WCF or should I continue to use ASMX?

If ASMX services are working fine for you as is with MS AJAX you probably don't have to switch. In fact if your services are purely based on making AJAX callbacks from a pure Web app and you don't plan on reusing existing services, there's not much of an advantage using? WCF over ASMX services. ASMX services continue to be easier to set up and work with and maybe more importantly they don't require .NET 3.5.

WCF REST services however provide features that ASMX does not, such as the ability to serve raw non-ASP.NET AJAX formatted data in 'bare' format. If you're working with non-ASP.NET AJAX clients like jQuery or Prototype this can be a bonus and lets you avoid using the MS AJax client libraries and ScriptManager. WCF REST also supports raw XML based access to services which is also useful and can't be directly accomplished with ASMX.

Another consideration: If you have existing services that rely on HttpContext, realize that WCF by default doesn't support access to the underlying 'host platform'. WCF is supposed to be host agnostic and WCF services can in fact be running outside of IIS. If you have existing code that relies on HttpContext access to the Request or Session object which is common , it's probably best to leave it in ASMX (although WCF has a way to do that as well).

But if you're starting a new app and you're using .NET 3.5 on the server anyway you might as well take advantage of WCF's REST/Ajax features and the wider range of options available to publish data.

WCF REST Configuration for ASP.NET AJAX and plain REST Services


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦?。。?/p>

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: jizz性欧美2| 很黄很色的小视频在线网站 | 一区二区三区四区在线视频 | 上将的炮灰前妻重生了 | 欧美日韩综合精品一区二区三区 | 亚洲欧美国产日产综合不卡 | 天天碰天天干 | 91短视频免费在线观看 | 99精品视频一区在线视频免费观看 | 欧美video| 九九综合九九 | 999毛片 | 国内精品久久久久久2021浪潮 | 国产羞羞网站 | 日韩a电影 | 精品久久久久区二区8888 | 久久99精品久久久久久噜噜 | 草的爽免费视频 | 欧美乱妇在线观看 | 欧美日韩在线视频不卡一区二区三区 | 污污成人一区二区三区四区 | 久久亚洲这里只有精品18 | 成人在线中文字幕 | 久草久草久草久草 | 久久精品一 | 今井夏帆av一区二区 | 色噜噜在线观看 | 成人国产激情福利久久精品 | 亚洲成人一区二区三区 | 草草影院浮力 | 免费观看日韩大尺码观看 | 欧美一级aⅴ毛片 | 亚洲视频在线观看免费 | 精品一区中文字幕 | 欧日韩视频 | 亚洲在线xoxo日本在线 | 亚洲123| 久久久www成人免费无遮挡大片 | 日日干夜夜拍 | 911色_911色sss主站色播 | 国产精品久久久久影院色老大 |