RESTful services provide their data in form of resources accessible via a URL. The Bing Maps Location API responds with location resources, whereas the other API responses, in JSON, or XML format, contain imagery, route, or traffic information.
DataContracts that correspond to the JSON format of the REST APIs (the latest version of them can be found at http://msdn.microsoft.com/en-us/library/jj870778.aspx). We will also use them in our project, so let's copy them to a
JsonDataContracts.cs file inside the Models folder.
Now, it's time to write our proxy ...