In this article I will talk about creating WCF RESTful services for CRUD operations which uses JSON and DataContracts. CRUD operations are done by http verbs GET, POST, PUT and DELETE
REST stands for Representational State Transfer. It provides you an architectural principles about how client and service can exchange the resources over http. REST services can be accessed by any language which support http communication and help truly to heterogeneous applications.
JSON stands for JavaScript Object Notation. It is lightweight data exchange format. It does not create lengthy tags like XML and produce human readable clean data. JSON is completely language independent. It gives you a collection of Name/value pair.
-
RESTful WCF service - having Product and Order WCF services and exposed with webHttpBinding
-
Client for WCF REST service - console application as client for Order WCF RESTful service that consumes OrderService using webHttpBinding
For more detailed steps visit - https://geeksarray.com/blog/wcf-rest-service-to-get-or-post-json-data-and-retrieve-json-data-with-datacontract