Tutorial: ASP.NET (C#) WCF WebHttp service with jQuery: Table of Contents

A while ago (a year and a quarter) I created an amortization schedule generator in ASP.NET, as an attempt to help me determine when I could expect to have a loan paid off, depending upon how much money I threw at it.

For better or worse, some of the practices I put in place aren't the best, and either way I've been meaning to tweak the interface so that I could do various comparisons. If I pay x dollars more a month, how much faster would I have it paid off? How much would I save in interest? How much am I paying in interest as it is? I also really wanted to work with JSON and jQuery, for practice.

Now that I've found WCF WebHttp, I think I have everything I need to make it happen.

Final product

When I'm done I hope to have a WCF WebHttp service that will take a loan and return the total number of payments required to pay the loan off, with interest information. Variables will include the total loan amount, the annual percent, the number of payments per year, and the amount per payment. We'll be able to make requests to the service, via jQuery, and parse out the results for display on a page.

Tools used

To develop this I'll be using Visual Studio 2010 Professional, .NET Framework 4, and Windows Server 2008 R2, with jQuery 1.4.2. For browser testing I'll be using Internet Explorer 8 and Chrome 5.0.x.

Steps

The steps to create this product are listed below, with links to the articles that cover them.

  1. Object determination and creation
  2. Web service determination, creation, and testing
  3. jQuery implementation and enabling JSON results on our WCF RESTful Web service

(Steps subject to change/consolidation as articles are written.)