We tried to call a WCF service from a java application.

The author of the service told us that we need to flatten the WSDL to get it to work.

I looked up this article here.

I am facing two issues with the code in this article.
Error 1 The type or namespace name 'WsdlDescription' could not be found (are you missing a using directive or an assembly reference?) C:\FlatWSDL\FlatWSDL.cs 20 22 FlatWSDL

Error 2 Cannot call an abstract base member: 'System.ServiceModel.Activation.ServiceHostFactoryBase.CreateServiceHost(string, System.Uri[])' C:\FlatWSDL\FlatWSDL.cs 107 20 FlatWSDL


Has anyone an idea to get around this error?

OR

Are you aware of any tools to flatten out the WSDL?