Click here to Skip to main content
15,881,455 members
Articles / Programming Languages / C#

WCF Support for WSDL 2.0

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
12 Feb 2011CPOL3 min read 43.8K   457   5  
A command line utility to generate WCF proxies from WSDL 2.0 documents.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace svcutil2
{
    public class Utils
    {
        public static void RunExe(string path, string[] args)
        {
            var startInfo = new ProcessStartInfo();
            startInfo.FileName = path;
            startInfo.Arguments = @"""" + String.Join(@""" """, args) + @"""";
            startInfo.RedirectStandardOutput = true;
            startInfo.UseShellExecute = false;            
            var p = Process.Start(startInfo);            
            p.WaitForExit();

            var log = p.StandardOutput.ReadToEnd();
            Console.WriteLine();
            Console.WriteLine(log);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Israel Israel
Web services interoperability expert.

http://webservices20.blogspot.com/

Comments and Discussions