How do you consume a web service ?
Answer Posted / 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 View All Answers
What is the shortcut to open iis manager?
What secure authentication and encryption mechanisms are supported by iis 6.0?
For the document of size 1 mb, what size would you expect the index to be with indexing service?
Where is asp cache located on iis 6.0?
What is the name of the user who connects to the web site anonymously?
In a single process non of user's are accessing Web site when i checked the logs it showing event ID "530" ? need the solutions and also Mail me all the event id's related to IIS...
What is iis application?
How do I disable iis express?
How do I block port 80 in windows?
What is the main function of iis?
How do I automatically restart iis?
How do I check iis version?
What services does iisreset restart?
What is deploying a website?
What is iis and how it works?