Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Consuming REST service from C# code

Consuming REST service from C# code

Scheduled Pinned Locked Moved C#
jsoncsharptoolstutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Subin Mavunkal
    wrote on last edited by
    #1

    Hi Guys , Could you please let me know how to consume the following REST service from C# code. Your answers will be very helpful. Thanks in advance. Authenticate(POST) http://localhost:50448/UserRest/GetSampleMethod\_With\_OAuth json script -Request Body { "Password":"subin", "UserName":"Subin" } Get All(GET) http://localhost:50448/UserRest/getall?token={token} Update(PUT) http://localhost:50448/UserRest/update?token={token} json script -Request Body { "Bank":"String content", "DOB":"String content", "ID":"1", "Name":"String content" } Delete(DELETE) http://localhost:50448/UserRest/delete/1?token={token} Logout(POST) http://localhost:50448/UserRest/LogoutSession?token={token} With Regards

    A 1 Reply Last reply
    0
    • S Subin Mavunkal

      Hi Guys , Could you please let me know how to consume the following REST service from C# code. Your answers will be very helpful. Thanks in advance. Authenticate(POST) http://localhost:50448/UserRest/GetSampleMethod\_With\_OAuth json script -Request Body { "Password":"subin", "UserName":"Subin" } Get All(GET) http://localhost:50448/UserRest/getall?token={token} Update(PUT) http://localhost:50448/UserRest/update?token={token} json script -Request Body { "Bank":"String content", "DOB":"String content", "ID":"1", "Name":"String content" } Delete(DELETE) http://localhost:50448/UserRest/delete/1?token={token} Logout(POST) http://localhost:50448/UserRest/LogoutSession?token={token} With Regards

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Try http://ideanotion.net/consume-restful-web-services-in-c/[^] http://geekswithblogs.net/ruimachado/archive/2012/10/07/consuming-odata-based-rest-service-in-c-en-us.aspx[^]

      WP Apps - Color Search | Arctic | XKCD | Sound Meter | Speed Dial

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups