You have chosen to sponsor your bid up to a maximum amount of .
This project is to create a sample authentication process to show how JSON data can be sent from an HTML page to .net webservice in form of a PUT request, and then how the webservice can process the data, send a response back to the HTML page, which will then use the results to show whether the user is logged in. (DETAIL BELOW).
To contain a username and password textbox, and a submit button.
.NET web service
The response from the webservice should be one of the following three
"authenticated" (if the request succeeded and credentials are correct);
"failtoauthenticate" (if the request succeeded but credentials are not correct);
"requesterror" (a catch-all error if the request itself failed)
The HTML page is to process the webservice response as follows
"authenticated" - Show alert "You are logged in!"
"failtoauthenticate" Show alert: "Log in attempt failed"
"requesterror" Show alert: "there was a problem with the request to the server"
This code sample must work as .net project that can be run locally
The purpose is to help me understand how to send and process JSON data to a .net back end.
It will be used inside a mobile app based on HTML5, calling a web service that will be integrated in an existing .net site
Please provide annotations on how the code works and on any steps needed to get it to run locally or on a server