Exemple #1
0
        private static void HelloWorld()
        {
            ChinookServiceReference.ChinookWebServiceSoapClient service = new ChinookServiceReference.ChinookWebServiceSoapClient();

            Console.WriteLine("\nHello World\n{");

            try
            {
                string s = service.HelloWorld();
                Console.WriteLine(s);
            }
            catch (SoapException exception)
            {
                Console.WriteLine("SOAP Exception");
                WriteException(exception);
            }
            catch (Exception exception)
            {
                WriteException(exception);
            }

            Console.WriteLine("}");
        }