. Add the wdsl requirement after the URL of the web service, as shown below:
Http: // localhost/webexamples/simpleservice. asmx? WSDL
2.use disco.exe. Write the following command in the command line:
Disco http: // localhost/webexamples/simpleservice. asmx
3. Use the class provided in the namespace system. Web. Services. Description
The root element of each WSDL file is <definitions>, which must provide a complete description of the service. First, declarations of various namespaces must be provided in the <definitions> element.
The <definitions> element contains one or more <porttype> elements, each of which is a series of operations. You can think of a single porttype element as a logical grouping of classes composed of various methods. Each types should be called a service, so the entire WSDL file will become a service set.
There can be several methods or operation in each service. WSDL references them through the <operation> element.