Is it possible to call a Web Api method from a .NET 2.0 client?
Referring to the guide here: http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client
Some of these dlls for the client doesn't seem to be compatible with .NET 2.0
Are there any ways to call a Web Api method from a .NET 2.0 client without adding any dlls?
Of course that it's possible. You can call it from absolutely any HTTP compliant client. The client might not even be .NET.
For example in .NET 2.0 you could use the
WebClient
class:and if you wanted to POST some value:
// now use a JSON parser to parse the resulting string back to some CLR object }