How to convert a WCF service from SOAP to REST?
问题 I am very new to WCF and I have questions about it. After going through some articles I found that in the web.config file if I change the endpoint binding to webHttpBinding from basicHttpBinding and httpGetEnabled from true to false it uses REST. My question is are these the only two things that I need to change to make a service SOAP or REST? Or do I need to change/add any other things? 回答1: You can expose the service in two different endpoints. the SOAP one can use the binding that support