Hi,

I've recently been tasked with making a web service. I'm used to the asmx from 2.0 and found that in 4.0 that has been replaced by WCF. So, I went ahead and created the project and didn't change anything. I took a desktop app and added the unchanged WCF service as a reference, which kicked the service on. I then used the following code to access the service and just retrieve the default StringValue property, which should return "Hello!", but it returns a null. I've looked EVERYWHERE for a simple, quick tutorial but apparently all people want to know is how to run it on IIS7. Can someone help me out?

My code from the desktop app:

Code:
using (ServiceHost host = new ServiceHost(typeof(ServiceReference1.CompositeType)))
{
    host.Open();
    ServiceReference1.CompositeType test = new ServiceReference1.CompositeType();
    MessageBox.Show(test.StringValue);
}   //using
TIA,
Matt