Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 1.63 KB

File metadata and controls

21 lines (11 loc) · 1.63 KB

WCF REST service to GET or POST JSON data and retrieve JSON data with DataContract

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

Introduction to REST

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.

Introduction to JSON

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.

Applications

  1. RESTful WCF service - having Product and Order WCF services and exposed with webHttpBinding

  2. Client for WCF REST service - console application as client for Order WCF RESTful service that consumes OrderService using webHttpBinding

WCF RESTful Service

For more detailed steps visit - https://geeksarray.com/blog/wcf-rest-service-to-get-or-post-json-data-and-retrieve-json-data-with-datacontract