time 
设为首页】【收藏本站
当前位置: 主页 > WEB教程 > Web标准教程 > webHttpBinding、basicHttpBinding和wsHttpBinding区别

webHttpBinding、basicHttpBinding和wsHttpBinding区别

时间:2014-12-19 15:12 点击:3204次 字体:[ ]




1)webHttpBinding与basicHttpBinding / wsHttpBinding的区别:

  • webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web service

  • basicHttpBinding and wsHttpBinding are two SOAP-based bindings which is quite different from REST. SOAP has the advantage of having WSDL and XSD to describe the service, its methods, and the data being passed around in great detail (REST doesn't have anything like that - yet). On the other hand, you can't just browse to a wsHttpBinding endpoint with your browser and look at XML - you have to use a SOAP client, e.g. the WcfTestClient or your own app

(2)basicHttpBinding与wsHttpBinding的区别

  • basicHttpBinding is the very basic binding - SOAP 1.1, not much in terms of security, not much else in terms of features - but compatible to just about any SOAP client out there --> great for interoperability, weak on features and security

  • wsHttpBinding is the full-blown binding, which supports a ton of WS-* features and standards - it has lots more security features, you can use sessionful connections, you can use reliable messaging, you can use transactional control, you can use streaming for large data - just a lot more stuff, but wsHttpBinding is also a lot *heavier" and adds a lot of overhead to your messages as they travel across the network



本文地址 : http://www.fengfly.com/plus/view-215497-1.html
标签: WSHttpBinding basicHttpBinding webHttpBinding
------分隔线----------------------------
相关文章
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码: