0

Possible Duplicate:
Consuming REST based web services in .Net

I have the project of asp.net MVC, and my partner works on RESTFUL web service. Then I'm the one who post the JSON data to the web service. But I never work with posting data to web service. Could anyone give me any idea of how to posting JSON data to Restful using asp.net mvc 3.0.

Thanks for any help anyone can give me!

Community
  • 1
  • 1
Nothing
  • 2,644
  • 11
  • 64
  • 115
  • Are you trying to consume the web service on the server (with C#/VB.NET/etc) or on the client (with JavaScript)? – Jim D'Angelo Oct 17 '12 at 01:20
  • I am trying to do it with C# of my asp.net mvc 3.0 controller. I have a button, then if I click on it, it will point to that controller. – Nothing Oct 17 '12 at 01:26
  • @JamesD'Angelo : Do I have to do it with JavaScript? – Nothing Oct 17 '12 at 02:04
  • No. A quick search shows there is [plenty of help available already](http://stackoverflow.com/questions/727649/consuming-rest-based-web-services-in-net). – Jim D'Angelo Oct 17 '12 at 02:36
  • @JamesD'Angelo : The second answer of that question is using with XML not JSON data, right? – Nothing Oct 17 '12 at 02:41
  • [Another link to check out](http://stackoverflow.com/questions/8682560/best-way-to-consume-json-from-rest-api-in-net). (It will probably be faster to search than get another answer here.) – Jim D'Angelo Oct 17 '12 at 02:42

0 Answers0