Using WSDL tool to generate C # using WebService declaration file

Open cmd, enter wsdl.exe / language: c # / n: Namespaces /out:C:/TestService.cs http: //web/WS/WebService1.asmx wsdl?

explain

1.wsdl.exe position in the C: \ Program Files (x86) \ Microsoft SDKs \ Windows or the v7.0A such as V7.1A under the Bin folder can look for several

C: \ Program Files (x86) \ Microsoft SDKs \ Windows \ v8.0A \ bin \ NETFX 4.0 Tools can be found wsdl.exe

2./language:c# represents the output language, C # or VB

3./n:Namespaces represents the namespace of the class

4./out:C:/TestService.cs represents the output file path

5http:? //Web/WS/WebService1.asmx wsdl webservice represents address

 

Guess you like

Origin www.cnblogs.com/hews/p/11122031.html