Web Services Interview Questions for Experienced in C# - 2

Question: 6

What do you understand by SOAP encoding?

The Serialization of the types, such as integers and strings, inside a SOAP message is called encoding.

The SOAP objects use XML elements and attributes to serialized data.

For example, encoding style is an attribute of the Envelop element, which is used to specify the encoding rules for a SOAP object.

Question: 7

How can you prevent your Web services from unauthorized access?

The following are the ways to prevent your Web service from unauthorized access:

Using encryption and message-based security

Using authentication and access controls for the Web service

Question: 8

In .NET, which is the parent class to create all Windows services?

The ServiceBase class is the parent class to create all windows services.

Question: 9

What does the port Type element of WSDL document contain?

The port Type element contains the operations exposed by the Web service and the messages involved in the communication between the Web service and its consumers.

Question: 10

Does a Web service have state?

The Web services do not have any technique to maintain state.

However, it can access ASP.NET objects, such as application and session if they extend from the Web Service base class.

Related Questions