예제 #1
0
        private static void CreateClient(string wsdlFilename, string outFileName, string ns)
        {
            var wsdlDoc = XDocument.Parse(File.ReadAllText(wsdlFilename));
            var builder = new ProxyBuilder(wsdlDoc, new BuilderParameters()
            {
                CodeNamespace = ns
            });

            builder.Run();

            var sourceCode = builder.GetSourceCode();

            File.WriteAllText(@"C:\Users\Alexey\Source\Repos\SoapClient\SoapClient\WcfService1ClientApp\" + outFileName, sourceCode);
        }