亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

WCF REST Configuration for ASP.NET AJAX and

系統(tǒng) 4640 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


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

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

【本文對您有幫助就好】

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

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国产欧美一区二区三区久久 | 亚洲精品另类 | 亚洲精品在线播放视频 | 日韩每日更新 | 久久中精品中文 | 99视频在线免费 | 九九影音 | 黄色天堂在线 | 欧美在线一级精品 | 九九视频国产 | 日本一级毛片视频在线看 | 久久综合九色综合欧洲 | 岛国毛片一级一级特级毛片 | 久操精品在线 | 麻豆国产在线观看一区二区 | 日本免费不卡 | 国产一区二区在线观看视频 | 精品国产福利 | 午夜精品影院 | 欧美xxxx成人免费视频 | 国产一级特黄aaa大片 | www.奇米第四色 | 性性影院在线观看 | 国产精品免费视频一区一 | 综合欧美日韩 | 福利在线网 | 欧美影院一区二区 | 日本在线一卡二卡毛片 | 91av最新地址 | 91最新在线 | 精品久久久中文字幕一区 | 久久婷婷五综合一区二区 | 99re这里只有精品66 | 亚洲精品久久久久久久久久久网站 | 黄频网站在线观看视频 | 国产亚洲精品网站 | 黄色毛片a | 国产精品五月天 | 欧美金8天国 | 欧美洲精品亚洲精品中文字幕 | 国产成人在线视频播放 |