How do you consume a web service ?
Answer / pravesh
Web service Discovery mechanism enables client to locate
and discover web service on the net. Web service discovery
mechanism provides a discovery document , this discovery
document is written in WSDL and provides all the
information about web service, e.g.
1. its location
2. What methode is provides.
etc..
Following are the steps to consume a web service:-
1.Add web reference to project.
Enter url of the web service to locate the web service and
its methods.
2.Add reference to namespace of web service on the page (eg
using MyWebService)
3. Create an instance of web service class (e.g.
MywebServiceClass obj1= new MywebServiceClass();
4. call the required method (eg. int x= obj1.GetAge();)
Is This Answer Correct ? | 9 Yes | 0 No |
What is the main function of iis?
How do I install iis on windows?
How do you create Virtual Root in IIS?
Is iis open source?
What is iis worker process?
How do I add a website to iis manager?
Types of authentications in IIS?
What services use iis?
how we can change a PSD file in a clipart to use in word or power point ?
How to debug a web application which is hosted on iis?
How do I publish my website on iis?
Where are iis backups stored?