using System.IO; using System.Xml; using System.ServiceModel.Channels; namespace WCFConsole { public class CrossDomainService : ICrossDomain { private XmlReader MakeXml() { TextReader reader = new StringReader(@" "); return XmlReader.Create(reader); } public Message ProvidePolicyFile() { XmlReader xmlReader = MakeXml(); return Message.CreateMessage(MessageVersion.None, "", xmlReader); } } }