Blog‎ > ‎

Generate WCF Service Skeleton from WSDL

I found a need for a customer to host a WCF Web Service that mimics an existing SOAP/XML Web Service. Good news! I had a copy of the WSDL file that defined the Web Service's Proxy Interface.
Inside Visual C# 2010 [Express], right-click the project root or the 'References' folder then hover over Add Service Reference. That will open a window.
Enter the URL to the WSDL file or endpoint ( or file:\\\\C:\path\to\wsd[L] file) and click Go.
Enter a Namespace for the Interface to live then press OK. The default settings are usually enough for most projects.