QB Rating Web Service is a WCF service that calculates a QB's NFL and NCAA ratings. It supports REST, SOAP, XML and JSON. It is a Visual Studio 2012 project written in C# and is another in my series of QB Ratings app samples - InfoPath 2013 QB Rating, Excel 2013 QB Rating and SharePoint 2013 QB Rating (App & App Part).
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:svcutil.exe http://localhost:62370/QBRatingService.svc?wsdl
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:class Test { static void Main() { QBRatingServiceClient client = new QBRatingServiceClient(); // Use the 'client' variable to call operations on the service. // Always close the client. client.Close(); } }Visual Basic
Class Test Shared Sub Main() Dim client As QBRatingServiceClient = New QBRatingServiceClient() ' Use the 'client' variable to call operations on the service. ' Always close the client. client.Close() End Sub End Class