none
wcf rest service RRS feed

Answers

  • Hi,

    First we should understand what is rest, and the following can help you:

    Based on the Roy Fielding theory "Representational State Transfer (REST), attempts to codify the architectural style and design constraints that make the Web what it is. REST emphasizes things like separation of concerns and layers, statelessness, and caching, which are common in many distributed architectures because of the benefits they provide. These benefits include interoperability, independent evolution, interception, improved scalability, efficiency, and overall performance."

    Actually only the difference is how clients access our service. Normally, a WCF service will use SOAP, but if you build a REST service, clients will be accessing your service with a different architectural style (calls, serialization like JSON, etc.).

    REST uses some common HTTP methods to insert/delete/update/retrieve information which is below:

    1. GET - Requests a specific representation of a resource
    2. PUT - Creates or updates a resource with the supplied representation
    3. DELETE - Deletes the specified resource
    4. POST - Submits data to be processed by the identified resource

    For more information about what is the wcf rest service and how to create a wcf rest service, please try to refer to the following articles:

    http://www.codeproject.com/Articles/571813/A-Beginners-Tutorial-on-Creating-WCF-REST-Services .

    http://msdn.microsoft.com/en-us/magazine/dd315413.aspx .

    http://msdn.microsoft.com/en-us/library/vstudio/bb412169(v=vs.90).aspx .

    Best Regards.


    Amy Peng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Friday, July 26, 2013 2:17 AM
    Moderator