You must Sign In to post a response.
  • Category: WCF

    Wcf task to complete

    I learned WCF very well from internet and some video.I learned topic like diffrent hosting,binding,exception handling,instance mode,session management,concurrency and security.But did not learned rest service.Can anybody tell me good article for rest service.I will appreciate if any one can give task/situation where they used wcf.
  • #755204
    Hi,

    Rest is an Representational State Transfer.Rest is designed to use a stateless communication protocol, typically HTTP. In REST architecture style, clients and servers exchange representations of resources by using a standardized interface and protocol. Rest reacts different request like GET,POST,DELETE,PUT. Rest returns output on XML and JSON.

    Overall Rest have common process for WCF REST,MVC Web API and REST API services. these concept are service oriented architecture.other things are common for all.

    Regards,
    Kalandiyur Subramanian Mohan
    www.mohanks.com

  • #755252
    Please refer the MSDN article for detailed information on REST



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

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • #755256
    Hi,

    REST stands for Representational State Transfer, it is a simple stateless architecture that runs over HTTP where each unique URL is a representation of some resource. There are four basic design principles which should be followed when creating RESTful service:

    Use HTTP methods (verbs) explicitly and in a consistent way to interact with resources (Uniform Interface), i.e., to retrieve a resource use "GET", to create a resource use "POST", to update a resource use "PUT/PATCH", and to remove a resource use "DELETE".

    Interaction with resources is stateless; each request initiated by the client should include within the HTTP headers and body of the request all the parameters, context, and data needed by the server to generate the response.

    •Resource identification should be done through URIs, in simple words the interaction between client and resource in the server should be done using URIs only. Those URIs can act like a service discovery and interface for your RESTful service.

    Support JSON or/and XML as the format of the data exchanged in the request/response payload or in the HTTP body.


    for more ref, plz follow the below URl:

    http://www.codeproject.com/Articles/687647/Detailed-Tutorial-for-Building-ASP-NET-WebAPI-REST


    Hope it will help u put a lot..

    Thanks,
    chitaranjan

  • #755257
    Hi,

    for ur better understand, please go through the step by step code with examples:

    http://www.codeproject.com/Articles/426769/Creating-a-REST-service-using-ASP-NET-Web-API


    Thanks,
    Chitaranjan


  • Sign In to post your comments