How do you consume a web service ?



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

Post New Answer

More IIS Interview Questions

What is the user name of anomyus login???

2 Answers   Microsoft,


What scripts ship with iis 6.0?

0 Answers  


What is apache and iis?

0 Answers  


What is the role of http.sys in iis?

0 Answers  


Explain how to open iis configuration manager?

0 Answers  






What is the use of iis server?

0 Answers  


port no of FTP

3 Answers   Microsoft,


What is iis and why it is used?

0 Answers  


What does iis recycle do?

0 Answers  


How do you reset iis?

0 Answers  


What are the events happening in IIS when a page is posted back to the server.

1 Answers   HCL,


How do I enable iis in my firewall?

0 Answers  


Categories