The web service interface in the Visual Studio Object Browser:
Sample XML response from the service
The GetRating service call in the WCF Test Client:
Quick Usage Example
In order to use this service via SOAP, you'll need to create a client and use it to call the service. Additionally, you can use the REST configuration with a ServiceContract and UriTemplate similar to http://localhost:62370/QBRatingService.svc/calc?formula=NFL&c=10&a=16&y=212&t=3&i=1&fmt=XML. You can quickly create a configuration file and simple client class using the svcutil.exe tool from the command line with the following syntax:
This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example: C#
static void Main()
QBRatingServiceClient client = new QBRatingServiceClient();
// Use the 'client' variable to call operations on the service.
// Always close the client.
Shared Sub Main()
Dim client As QBRatingServiceClient = New QBRatingServiceClient()
' Use the 'client' variable to call operations on the service.
' Always close the client.
Detailed ASP.NET Usage Example
In addition to the quick usage in the previous section, I developed a working ASP.NET QB Rating Calculator that uses this web service to perform the actual calculations.
The complete Visual Studio 2012 project is available on CodePlex and MSDN.