Collection and sharing of, interview questions and answers asked in various interviews, faqs and articles.....
How will Windows Communication Foundation change the way developers build applications?
What is Windows Communication Foundation?
What is Service-Orientation and how is it related to Windows Communication Foundation?
Service Orientation is a specific set of architectural principles for building loosely coupled services that help developers maximize the return on your application investments over time. The services have explicit boundaries, are autonomous, share schema and contracts, and determine compatibility based on policy. Applications based on these principles provide benefits in maintainability, reusability, and manageability of connected systems. Windows Communication Foundation is the first programming model built from the ground up for building service-oriented applications.
Does service-oriented development conflict with object-oriented development?
No. Service-oriented development complements object-oriented (OO) development. Object-oriented development continues to fulfill an important role in the internal design of services. Service-orientation deals with how to interconnect services to build connected systems. To use an architecture analogy, OO development addresses the architecture within a single building (a service), while service-orientation addresses the issues around city planning (a system).
How will Windows Communication Foundation make service-oriented development easier?
Today, it is difficult to build service-oriented applications due to the lack of an intuitive service-oriented programming model. Web services provide a great start, but lack support for more advanced communication, including secure and reliable transacted services. Windows Communication Foundation provides both an intuitive service-oriented programming model and the advanced functionality to create service-oriented applications that interoperate across organizational and platform boundaries.
Will Windows Communication Foundation applications interoperate with Web services built with other technologies?
What specifications will Windows Communication Foundation support?
Windows Communication Foundation will support a broad range of Web services standards, including basic standards (XML, XSD, XPath, SOAP, WSDL) and advanced standards and specifications that comprise the WS-* architecture. These include WS-Addressing, WS-Policy, WS-Security, WS-Trust, WS-SecureConversation, WS-ReliableMessaging, WS-AtomicTransaction, WS-Coordination, WS-Policy, and MTOM.
In Terms of WCF, what do you understand by metadata of a service?
The metadata of a service describes the characteristics of the service that an external entity needs to understand to communicate with the service. Metadata can be consumed by the Service Model Metadata Utility Tool ( Svcutil.exe) to generate a WCF client and accompanying configuration that a client application can use to interact with the service.
The metadata exposed by the service includes XML schema documents, which define the data contract of the service, and WSDL documents, which describe the methods of the service.
In terms of WCF, What is binding?
In terms of WCF, What is an address?
In terms of WCF, What is an infrastructure endpoint?
In terms of WCF, What is an application endpoint?
In terms of WCF, What is an endpoint?
An WCF service is exposed to the world as a collection of endpoints.
In terms of WCF, What is a service?
In terms of WCF, What is a message?
What is a service contract ( In WCF) ?
Everything your consumer has to know is your service interface, and how to talk to it. In order to know this, both parts (service and consumer) have to share something that is called a Contract.
In WCF, there are 3 kinds of contracts: Service Contract, Data Contract and Message Contract.
A Service Contract describes what the service can do. It defines some properties about the service, and a set of actions called Operation Contracts. Operation Contracts are equivalent to web methods in ASMX technology
Windows Communication Framework Interview Question
· What is Windows CardSpace ?
· What is WCF?
· What are the important principles of SOA (Service oriented Architecture)?
· What are end points, contract, address and bindings?
· Which specifications does WCF follow?
· What are the main components of WCF?
· What are different bindings supported by WCF?
· Which are the various programming approaches for WCF?
· What is one way operation?
· Can you explain duplex contracts in WCF?
· How can we host a service on two different protocols on a single server?
· How can we use MSMQ bindings in WCF?
· Can you explain transactions in WCF?
· Can you explain how End points, Contract, Address and Bindings are done in WCF?
· What is a service class?
· What is a service contract, operation contract and Data Contract?
· What are the various ways of hosting a WCF service?
· How do we host a WCF service in IIS?
· What are the advantages of hosting WCF Services in IIS as compared to self hosting?
· What are the major differences between services and Web services?
· What is the difference WCF and Web services?
· What different transaction isolation levels provided in WCF?
· Can we do transactions using MSMQ?
· Can we have two way communications in MSMQ?
· Explain Volatile queues, Dead letter queues & poison message?