See Also: ServiceDescriptionImporter Members
The interface to an XML Web service is typically described by a Web Services Description Language (WSDL) file. For example, to obtain a WSDL description of a Web service using ASP.NET exposed at http://localhost/service.asmx, simply navigate to http://localhost/service.asmx?WSDL.
The System.Web.Services.Description.ServiceDescriptionImporter class allows you to easily import the information contained in a WSDL description into a System.CodeDom.CodeCompileUnit object. By adjusting the value of the ServiceDescriptionImporter.Style parameter, you can instruct a System.Web.Services.Description.ServiceDescriptionImporter instance either to generate a client proxy class that provides the functionality of the Web service by transparently calling it or to generate an abstract class that encapsulates the functionality of the Web service without implementing it.
The code in the resulting System.CodeDom.CodeCompileUnit object can then either be called directly or exported in the language of your choice.