using System; using System.Collections.Generic; using System.Linq; using System.Text; using MyClient.TempConverterServiceReference; namespace MyClientApp { class Program { static void Main(string[] args) { // Note: If you have more than one service endpoint in the client config file, // you must specify an endpoint name in the proxy constructor. // For example: // using (TempConverterClient proxy = new TempConverterClient("WSHttpBinding_ITempConverter")) Console.WriteLine("Client application consuming service hosted in VS test server..."); using (TempConverterClient proxy = new TempConverterClient()) { double f = proxy.CtoF(100); Console.WriteLine("100C = {0}F", f); Console.ReadLine(); } } } }