c# - How to create a host application to receive data and send a response back -
i new programming , have given project have no idea how it. i have write host application.the following requirement: develop cxml webservice host testing cxml posts xyz.net . the application should read stream of data,validate against dtd. store in corresponding tables , send response client. this should example. create console application, , set startup object selfhost. run application , wcf service should available @ url stated code : http://localhost:1234/hello " [servicecontract()] public interface iindexer { [operationcontract] bool test(); } public class indexer : iindexer { public bool test() { return true; } } class selfhost { static void main(string[] args) { uri baseaddress = new uri("http://localhost:1234/hello"); // create servicehost. using (servicehost host = new servicehost(typeof(indexer), baseaddress)) { ...