title: Using HttpClient with ASMX in C#
body: <p>I am playing with <code>HttpClient'.  I'm wondering if it is compatible with</code>.asmx` web services.</p>
  
  <p>Say I have a method such as this:</p>
  
  <pre><code>        var baseAddress = new Uri("Http://localhost/folder/WebServiceCommand.asmx/");          
          var config = new HttpSelfHostConfiguration(baseAddress);                      
          var server = new HttpSelfHostServer(config);
  
          using (var client = new HttpClient(server))
          {
              client.BaseAddress = baseAddress;
  
              var response = client.GetAsync("GetData").Result;
  
              Assert.IsTrue(
                          response.IsSuccessStatusCode, 
                          "Actual status code: " + response.StatusCode);
          }
  </code></pre>
  
  <p>Firstly, is what I'm trying to do possible or should I use the older <code>HttpWebRequest</code> class?</p>
  
  <p>If it is possible, why is it returning a 404 - NOT FOUND?  If I paste the address into a browser, it is found OK.</p>
  
  <p>Thanks</p>