views:

1878

answers:

1

Dear Devs

I need a comparisons chart of above 3 mentioned bindings in terms of features and performance. i have seen some between ws and basic but i need web as well.

Please if anyone has link to any article please share i have tried google but no gain yet.

+16  A: 

You're comparing apples to oranges here:

  • 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

So your first decision must be: REST vs. SOAP (or you can expose both types of endpoints from your service - that's possible, too).

Then, between basicHttpBinding and wsHttpBinding, there differences are as follows:

  • 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

marc_s
I am not taking any decisions here dear i just wanted to know the difference you must know what is the taste of orange and the same of apple that is why i asked this question. I need more about WebHttpBinding in term of feature comparisons and performance
Mubashar Ahmad
Check out Google or Bing and search for "REST vs. SOAP" - **LOADS** of information out there!
marc_s

related questions