Question 351 – What is a Web Service?
- It is an application that is designed to interact directly with other applications over the internet.
- In simple sense, Web Services are means for interacting with objects over the Internet.
- It provides a standard means of interoperating between different software applications, running on a variety of platforms and/or frameworks.
- Web Service is
- Language Independent
- Protocol Independent
- Platform Independent
- It assumes stateless service architecture.
Question 352 – What are the Examples of Web Service?
- Weather Reporting
- Stock Quote
- News Headline
Question 353 – What are the Advantages of Web Service?
- Interoperability – This is the most important benefit of Web Services
- Usability – Web Services allow the business logic of many different systems to be exposed over the Web.
- Reusability – Can be used across the systems
- Deployability – Web Services are deployed over standard Internet technologies
- Message sent via HTTP, so will be transported without being blocked by firewall.
Question 354 – What are the DisAdvantages of Web Service?
- Since its over internet there is not guarantee for 100% availability
- Since its passed over http protocol, it can be easily tampered
Question 355 – What are the Steps to Create a Webservice?
- Create a new website by selecting "ASP.NET Web Site" and giving it a suitable name.
- service.cs file appears inside the solution with a default webmethod named as "HelloWorld()"
- Right click on the webservice project and add a web reference instead of adding a normal reference.
- A window appears that displays a list of webservices knows to the solution.
- Click on "Webservices in this solution"
- a search progress bar appears and
- Select the service that appears in the list
- progress bar appears once again.
- web method appears on the screen
- Click on "Add reference" button. This would add localhost
- solution would have App_WebReference folder
Question 356 – What are the Steps to Consume a Webservice?
- Add a UI (.php) to the webservice project
- Add a button and a label to the form
- Double click the button to see the click event of the button
- Create an object of type service localhost.serviceName
- Write code to display the value returned by the webmethod on the label
- Execute the solution by setting the added aspx as the startpage.
- click on the button and the message "Hello World" would be displayed on the label
Question 357 – What is a Proxy class?
- It is a code that looks exactly like the class it meant to represent;
- Proxy class doesn’t contain any of the application logic. Instead, the proxy class contains marshalling and transport logic.
- A proxy class object allows a client to access a web service as if it were a local COM object.
- The Proxy must be on the computer that has the web application.
Question 358 – What is SOAP?
- SOAP stands for Simple Object Access Protocol
- A better way to communicate between applications is over HTTP, because HTTP is supported by all Internet browsers and servers. SOAP was created to accomplish this.
- SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.
- SOAP is a communication protocol
- SOAP is for communication between applications
- SOAP is a format for sending messages
- SOAP communicates via Internet
- SOAP is platform independent
- SOAP is language independent
- SOAP is based on XML
- SOAP is simple and extensible
- SOAP allows you to get around firewalls
- SOAP is a W3C recommendation
Question 359 – What is UDDI?
- It is Universal Description, Discovery, and Integration
- It describes a set of standards that XML web service providers should follow to advertise the fact that their web service exists.
- It is a directory for storing information about web services
- It is a directory of web service interfaces described by WSDL
- It communicates via SOAP
- It is built into the Microsoft .NET platform.
- It provides a standardized method for publishing and discovering information about web services.
Question 360 – Where UDDI is used in real time?
- UDDI has several different uses, based on the perspective of who is using it.
- From a business analyst’s perspective, It is similar to an Internet search engine for business processes.
- Software developers use the UDDI Programmer’s API to publish services and query the registry to discover services.
Disclaimer – F5debug Interview Questions & Answers Series:
You may recopy extracts from these pages ("the material") to individual third party websites or to any intranet websites, but only if:
You acknowledge www.f5debug.net as the source of the material. Such acknowledgment should include reference to www.f5debug.net in the copy of the material and should also include “© Karthikeyan Anbarasan, www.f5debug.net ". You inform the third party that these conditions apply to him/her and that he/she must comply with them.