using System; // This class exists to house the application's entry point class MainApp { [System.Diagnostics.DebuggerStepThroughAttribute()] static void Main(string[] args) { // In the client project, Service1 is the proxy class Service1 service = new Service1(); string result = service.ping(); System.Console.WriteLine(result); userDetailsDef user = new userDetailsDef(); user.userName = "Francis Norton"; user.userId = "fn"; user.email = "francis@redrice.com"; user.contactNotes = "stick to email"; registerDef r = new registerDef(); r.userDetails = user; r.password = "sesame"; reportOkDef rc = service.register(r); System.Console.WriteLine(rc.loggedOnToken); logonDef logon = new logonDef(); logon.userId = "francis"; logon.password = "sesame"; System.Console.WriteLine("about to call login"); IAsyncResult arc = service.Beginlogin(logon, null, null); while(arc.IsCompleted == false) { System.Console.Write("."); } rc = service.Endlogin(arc); System.Console.WriteLine(rc.loggedOnToken); Console.WriteLine(); Console.Write("Press Enter to close window."); Console.Read(); } }