title: WCF HTTP GET api
body: <p>In my .NET project, I have to use HTTP GET request to get weather info for my city from API. Because of my JavaScript background I thought "OK, so all I need is something like <code>app.get(url, body)</code>", so I started with something like this:</p>
  
  <pre><code>        using (var client = new WebClient())
          {
              var responseString = client.DownloadString("http://www.webservicex.net/globalweather.asmx/GetWeather?CityName=" + city + "&amp;CountryName=" + country);
              string xmlString = DecodeXml(responseString);
  
              return xmlString;
          }
  </code></pre>
  
  <p>Unfortunately for me it turned out, that I have to use WCF to get the data. I searched the web for some tutorials, but I couldn't find anything with getting the data from outer sources, just creating own API. </p>
  
  <p>I'm not a native speaker, so maybe I'm just out of words to look for the solution, but it would be awesome if you could give me some advice.</p>