Archive | WebServices

Step By Step Procedure to Consume a WebService

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.

                                                    (OR)

Instead of using Above steps You can Achieve same thing using WSDL.exe

Cosuming WebSerice Using WSDL.EXE:

  1. After creating the Webservice Right click on .asmx file and Click on Browse
  2. Copy the url
  3. Open VS2008 Command prompt
  4. Follow the steps given in the below given screen shot.

Posted in WebServices0 Comments