Generation:
Start running CMD
C: Program FilesMicrosoft Visual Studio 8SDKv2. 0Bin> wsdl/language: c #/n: XYS. MISS. Photo. PhotoAdmin/out: d: TempTestService. cs D: TempTestService. wsdl
A TestService. cs file is generated under d:/Temp.
The default value is C # language/language: VB, which is the output language/n: mynamespace namespace/out: myProxyClass. cs output file name.
Note: D: TempTestService. wsdl is the wsdl path, which can be the url path: http: // localhost/Temp/Test. asmx? Wsdl
Call:
Copy the TestService. cs method to the project and call it in the Default. cs code:
XYS. MISS. Photo. PhotoAdmin aa = new XYS. MISS. Photo. PhotoAdmin (); // locate the class in the namespace specified when the Code class is generated and instantiate it.
String hospitalName = actionPhoto. GetHospitalName (); // call the method in the webService proxy class