In order to Create SharePoint 2010 Web Service WSDL and DISCO files, please follow below mention steps.
We will get WSDL and DISCO file created in short span of time.
- Build VS solution.
- Put the latest DLLs in Assembly folder by using any command like gacutil etc.
- Reset the IIS.
- Copy “CustomServices.asmx” file in “14\TEMPLATE\LAYOUTS” folder.
- Open “WSSWebServicePackager.exe”.
- Put the “layouts” path of “CustomServices.asmx” file. e.g.
- Browse to the folder where you want to create the files.
- Click on “Generate and Upload Files”.
- Wait for operation to complete. Then Click on “OK”.
- Go to the folder where you have stored the files e.g. “C:\Web Services”.
- Open both files in notepad/or a text editor.
- Change the assembly version from “12.0.0.0” to “14.0.0.0” in both files.
- Save both files.
- Copy/Overwrite following 3 files:
- CustomServicesdisco.aspx
- CustomServiceswsdl.aspx
- CustomServices.asmx
Finally go to “14\ISAPI” folder and replace the Web service solution project.