1.Create a webservice and click browse on its .asmx to see the url of the asmx file 2.Open Asp.net application and Right click on the Project Select AddWebreference and give the above generated asmx url , click on Go.
3.Change the Default WebReference name to “Palle” Click on Add Reference.
Instead of using Above steps You can Achieve same thing using WSDL.exe
Cosuming WebSerice Using WSDL.EXE:
- After creating the Webservice Right click on .asmx file and Click on Browse
- Copy the url
- Open VS2008 Command prompt
- Follow the steps given in the below given screen shot.