Sometimes you need to call web services dynamically. In 99.99% of cases you dont know anything about these services except its URI.

But ServiceDescriptionImporter class even in .Net 4 doesn't understand WSDL produced by WCF services (SIC!) beacuse it differs from native ASMX format by separating its schemas form main file into different WSDL pages adding refences to then in man file.

I've seen many different solutions of this issue, but most of them were to complex to implement (like overriding WSDL generation in your WCF and manually generatin right file). Thus, I came to this simple and esay to use solution. Just add a refence to WSDLFlattener to your project and you're nearly done.

Last edited Feb 3, 2012 at 5:32 PM by Eugene_Mikhaylov, version 3