Top 30+ Web Services Interview Questions and Answers - 2

Question: 6

What are windows services?

Windows services, previously known as NT services, are applications that are installed on the system as services. In other words, windows services are applications that run in the background with the windows operating system.

The primary use of windows services is to reduce the consumption of memory required for performing backend operations. Let’s take an example to understand this easily.

Suppose you want to perform a variety of functions, such as monitor the performance of your computer or application, check the status of an application, and manage various devices, such as printers. In such a case, you can use windows services to reduce memory consumption.

In addition, windows services can run on your system even if you have not logged on to your computer. In addition, these services do not have any user interface.

Question: 7

Which method is used to uninstall the Windows services?

The Uninstall () method to uninstall the Windows services.

Question: 8

What advantages have Web services over Component Object Model (COM) and Distributed Component Object Model (DCOM)?

The advantages of Web services over COM and DCOM are as follows:

  Web services are simple to use and can be implemented on varied platforms

Web services are loosely coupled; as a result, their interfaces and methods can be extended

Web services do not carry any state information with them so that multiple requests can be processed simultaneously

Question: 9

What is the use of a. disco file?

A client application uses a .disco file to locate or discover the documents that contain the description of a Web service.

The .disco file contains links to other resources, which describe essential features, such as capabilities of a web service.

The links contained in a .disco file can refer to other discovery documents or XSD schemas.

The description about the services and capabilities of a web service is written in web services Description Language (WSDL).

A .disco file can also contain the information about other XML Web services that reside on the same or a different Web server.

Question: 10

Write the names of public properties defined in the Web Service class?

There are many properties defined in the Web Service class:

Application –Obtains the application object for the current HTTP request

Context – Obtains the Http Context object for the current request, which encapsulates all HTTP-specific context used by the HTTP server to process Web requests

Server – Obtains the Http Server Utility object for the current request

Session – Obtains the Http Session State object for the current request

Soap Version- Obtains the version of the SOAP protocol used to make the SOAP request to a Web service

User – Obtains the Server User Object. This property can be used to authenticate whether a user is authorized to execute the request.

Related Questions