1. using using System.ServiceModel.Web;
2. [WebGet] to operation contract
3. new endpoint behavior for webHttp
if i write the name of the binding incorrectly, i get the following error :
Configuration binding extension 'system.serviceModel/bindings/webHttp' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.
A binding instance has already been associated to listen URI 'http://localhost:49706/WebSite2/Service.svc'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config.
4. Call the service using the url ( you need to change the localhost portno)