Jun 26, 2010

How to consume webservice from other webapp

Steps for consuming web service from other apps
  1. before consuming the web-service place the web service in iis for global access
  2. after that right click on solution explorer and select add web reference

                3.select Web services on the local machine
                4.

Web Services on the Local Machine

The Web services and Discovery Documents available on your VS.NET developer machine are listed below. Click the service link to browse that service.
Services URL
dadatickets http://localhost/ticketdada/ws/dadatickets.asmx
mathservice http://localhost/websr/App_WebReferences/math/mathservice.wsdl
mathservice http://localhost/websr/mathservice.asmx
Discovery Documents URL
mathservice http://localhost/websr/App_WebReferences/math/mathservice.disco 

                 Select mathservice service  from the list  and give the webrefrence name as localhost and add refrence

refrence added sucess fully and and consume in ur app 

No comments:

Post a Comment