Actually, you should not use wsdl.exe for WCF - use svcutil.exe .
When you use svcutil.exe in WSDL, you should get a myservice.cs file that contains an interface (service contract) and possibly some data structures (data transfer contracts).
Use these functions to create your service - the service code must implement this interface and provide an implementation for these methods. It is basically a meat service application.
For details, see Accessing Services Using the WCF Proxy Server - Yes, I know the header about creating WCF clients, but it works for services too - you just convert WSDL (and possibly XSD) to a C # file and implement this interface defined there.
You should also read Schema-Based Development with WCF , which discusses this topic - to generate services and client from / WSDL schemes created in advance of time.
The same guy (Christian Weyer) is also the original author of the Visual Studio plugin to make contract development in WCF much easier - go to Codeplex - itβs absolutely free, completely with the source code - go nuts!
source share