System.Web.Services.Description.ServiceDescriptionImporter Class

Exposes a means of generating client proxy classes for XML Web services.

See Also: ServiceDescriptionImporter Members


public class ServiceDescriptionImporter


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.


Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0,