home *** CD-ROM | disk | FTP | other *** search
- using System;
- using System.Runtime.Remoting;
- using System.Runtime.Remoting.Channels.HTTP;
- using HelloService;
-
- public class SimpleHello
- {
- public static void Main(String[] args)
- {
- String name = "Bill";
- ChannelServices.RegisterChannel(new HTTPChannel());
- Hello hello = (Hello)Activator.GetObject(typeof(Hello), "http://localhost:80/HelloService/Hello.soap");
- String result = hello.HelloMethod(name);
- Console.WriteLine("Hello.HelloMethod returned: " + result);
- }
- }
-