views:

168

answers:

1

Hi there,

does anyone know if HttpClient & HttpResponseMessage classes are available in VS 2010? I can't seem to get them to work, do i need to add a reference or using namespace?

These classes were originally from the starter kit for REST for Vs 2008... In vs 2010 its built in i.e. no use for the starter kit...

But how do I cosume them if these classes are missing...

I have searched google for an answer and all i keep finding is examples for vs 2008 i.e. the REST starter kit.

Any help really appreciated

Thanks in advance

A: 

No they are not. They will be in the next version of the .Net framework. Until then you will need to continue using the ones from the WCF REST Starter kit.

Darrel Miller
Hi Darrel, ahh so they don't exist in .net 4.0? So basically i can built my REST services using standard vs 2010 etc i.e. NO rest starter kit ... but to build the client i must use the rest starter kit. Is this correct? ....
mark smith
@mark Must is a strong word. You have the option of using the Microsoft.Http library to access your REST services. I never really considered the Microsoft.Http library part of the REST starter kit, even though it was packaged with it. I use the HttpClient to access REST services that I have built with my own non-WCF framework.
Darrel Miller
ah ok Darrel, yes agreed i see my open source alternatives for using rest clients... I will stick with the HHTP library from microsoft... THanks once again for all your help
mark smith