title: Pass in username and password in an xml request to wcf service for authentication?
body: <p>I have a wcf service in which the user will need to be authenticated before they can make a service call.  There will be no website where the user is validated through login or a windows/console app where the user is validated.  I was thinking of doing something like this:</p>
  
  <p>Pass in a request:</p>
  
  <pre><code>&lt;GetCars&gt;
      &lt;Credentials username="test" password="test" /&gt;
  &lt;/GetCars&gt;
  </code></pre>
  
  <p>If the username and password are successful, return the successful response for GetCars else fail.</p>
  
  <p>The problem is that I don't know how to pass in a request to a wcf service like the above and then read the username and password attributes to validate it.</p>