using (ServiceHost sh = new ServiceHost(typeof(OpService)))
{
ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
smb.HttpGetEnabled = true;
sh.Description.Behaviors.Add(smb);
sh.Open();
Console.WriteLine("Service running...");
Console.ReadLine();
sh.Close();
}
Try doing something like this in WCF....