4

Greetings,

I'm confused as to the best approach to make when consuming REST based web services with .Net. At the moment I'm using the System.net.webclient class. Should I be using Webresponse, webrequest classes in System.Net ?

If I were to use another approach (Other than webclient) what disadvantages / advantages would I gain ?

Thanks,

Steve
  • 21,163
  • 21
  • 69
  • 92

2 Answers2

3

You can also see this link if you want to do it without WCF.

Senad Uka
  • 1,131
  • 7
  • 18
3

If you use the WCF REST starter kit, there's pretty much no technical downside. There's a learning curve, however, and it will only work if you have .Net 3.5 SP1 (so I guess that's the down side).

Michael Meadows
  • 27,796
  • 4
  • 47
  • 63