• +91 9723535972
  • info@interviewmaterial.com

WCF Interview Questions and Answers

Related Subjects

WCF Interview Questions and Answers

Question - 71 : - What are the endpoints in WCF? Explain its common types too.

Answer - 71 : -

Endpoints are responsible to provide the necessary configuration and help1101 in creating the complete WCF application too. It will define the complete piece of information on how can you exchange the data between two points. It consists of three major parts – address, binding, and Contract. 

  • An address uniquely identifies each endpoint.
  • The binding will specify how clients can communicate with endpoints.
  • The contract will identify the list of available operations.

Question - 72 : - What is the need for Addresses when defining service endpoints in WCF?

Answer - 72 : - If you are not sure where to send messages then addresses play an important role here. This is a Uniform Resource Locator (URI) that will identify the location of the receiver. It is similar to the network address and highly useful to send or receive messages. It can be divided into four parts – Scheme, Machine, Port, and path. Each address is unique in itself and finds out the location of the receiver accurately without any error. There are plenty of protocols are used to exchange messages in WCF. These are HTTP, TCP, MSMQ, etc.

Question - 73 : - What is binding in WCF? Explain its characteristics too.

Answer - 73 : - The Binding will explain to you how will you communicate with the service. There are plenty of protocols to facilitate communication in WCF. These are HTTP, TCP, MSMQ, etc. The characteristics of binding are Protocol, Encoding, or Transport, etc.

Question - 74 : - What are the transactions in WCF? Explain its types too.

Answer - 74 : - A transaction is a logical unit that defines multiple activities in WCF either pass or fails. The two common types of transactions are – Atomic and Long Running. Two phases of transactions are Prepare Phase and the Commit Phase.

Question - 75 : - What are the hosting requirements for a web service?

Answer - 75 : - The hosting requirements for a web service include – Availability, Reliability, Manageability, Versioning, Deployment, State, etc.

Question - 76 : - What are default Endpoints?

Answer - 76 : - WCF offers some default endpoints to the service if a service host doesn’t define any endpoints but has at least one base address. For example, WCF uses the basic binding for the HTTP address. This is an important answer to these kinds of wcf interview questions.

Question - 77 : - What are standard Endpoints?

Answer - 77 : -

WCF provides a set of pre-defined endpoints known as Standard Endpoints for metadata exchange, discovery, and web. You can configure the standard endpoints by using a config file and programmatically. Here is the list of standard endpoints :

  • MEX endpoint
  • webHttpEndpoint
  • webScriptEndpoint
  • workflowControlEndpoint
  • announcement endpoints
  • discoveryEndpoint
  • udpAnnouncementEndpoint
  • udpDiscoveryEndpoint

Question - 78 : - What are the different WCF contracts?

Answer - 78 : -

WCF contract specifies the service and its operations. WCF has five types of contracts:

  • Service contract
  • Operation contract
  • Data contract
  • Message contract
  • Fault contract.

Question - 79 : - What are the different types of bindings in WCF?

Answer - 79 : -

WCF supports the following types of built-in bindings:

  • Basic binding
  • Web binding
  • Web Service (WS) binding
  • WS Dual binding
  • TCP binding
  • IPC binding
  • MSMQ binding
  • Federated WS binding
  • Peer Network binding
  • MSMQ integration binding

Question - 80 : - What are the ways to create a WCF Client?

Answer - 80 : -

There are two ways to create a WCF Client or calling a WCF Service as:

  • WCF Proxy
  • Channel factory


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners