Flat WSDL for WCF 4 Service
问题 Using WCF 3.5 and the FlatWsdl EndpointBehavior from Christian Weyer, I was able to get a single flat WSDL file for my WCF services without any <import> directives. Now with WCF 4, this doesn't work anymore for some reason. I have tried everything described in a lot of blog entries including using the WcfExtras behavior extension. They all either refer to Chr. Weyers solution or recommend the WcfExtras. I also made sure I specified the same namespace for the binding, ServiceContract and