Asp.Net Web API Interview Questions and Answers Pdf - 2

Question: 6

Which property of the Service Base class can be used to specify whether a service can be paused and resumed?

The can pause and continue property provides such type of service.

Question: 7

How can you ensure that only authorized users access your Web service?

You should use the < authorization> element to ensure that only authorized users access your Web service.

This element allows or denies access to your Web service according to their role.

Question: 8

Which step is necessary to perform before a Web service can be consumed?

It is necessary to build a proxy class by using the wsd1.exe utility before a Web service can be consumed.

Question: 9

What is the use of the must understand attribute in the Header element of a SOAP message?

The must Understand and attribute indicates that a header entry is either required or optional for the recipient to process further.

Question: 10

Mention the name of the directory where it is necessary to locate the proxy file to use a Web service?

The proxy file must be stored in the / bin directory. This directory is situated under the root directory of the application.

Related Questions