using System; using System.Collections.Generic; using System.Text; using System.Net; using System.ServiceModel; using System.ServiceModel.Description; namespace DataBindingWorkingGroup { class Program { static void Main(string[] args) { Uri baseAddress = new Uri("http://localhost:9001/PortType"); ServiceHost host = new ServiceHost(typeof(PortTypeImpl),baseAddress); BasicHttpBinding binding = new BasicHttpBinding(); System.Xml.XmlDictionaryReaderQuotas readerQuotas = new System.Xml.XmlDictionaryReaderQuotas(); readerQuotas.MaxNameTableCharCount = 100000; binding.ReaderQuotas = readerQuotas; ServiceEndpoint ep = host.AddServiceEndpoint(typeof(PortType), binding, "svc"); host.Open(); Console.ReadLine(); } } }