using System;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Http;
class Program {
static void Main() {
HttpChannel canalHttp = new HttpChannel(0);
ChannelServices.RegisterChannel( canalHttp, false );
MarshalByRefObject obj = (MarshalByRefObject)
RemotingServices.Connect(
typeof(InteropNS.LocalizerSoap),
"http://localhost:80/LocalizationCorp/Localizer.asmx");
InteropNS.LocalizerSoap proxy = obj as InteropNS.LocalizerSoap;
InteropNS.Town town = proxy.GetTownFromLatLon(43.42, 7.15);
Console.WriteLine("Town:"+town.Name+" Country:"+town.Country);
}
}