One of the most common programming tasks today is to manage a series of WebRequests, mostly HttpRequests.
If you need a “C# parameter to queryString converter” you have to build your own, and so on…
Lastly I’ve playing with the WCF webHttpBinding way to build REST clients in .NET 4.0, here is the result:
So I create a basic XmlSerializer classes to handle the XML response, and the interface with WebGet decorated methods
And that’s it, well just one point, how to set the base url for the operation:
so the interface implementation becomes like:
And now you can call the SearchTrack as:
have fun !!