5
Reply

What is the ABC of WCF

ashok rathod

ashok rathod

Apr 07, 2014
10.6k
0

    The ABC of Windows Communication Foundation"ABC" is the WCF mantra. "ABC" is the key to understanding how a WCF service endpoint is composed. Think Ernie, Bert, Cookie Monster or Big Bird. Remember "ABC"."A" stands for Address: Where is the service?"B" stands for Binding: How do I talk to the service?"C" stands for Contract: What can the service do for me?Web services zealots who read Web Service Description Language (WSDL) descriptions at the breakfast table will easily recognize these three concepts as the three levels of abstraction expressed in WSDL. So if you live in a world full of angle brackets, you can look at it this way:"A" stands for Address—as expressed in the wsdl:service section and links wsdl:binding to a concrete service endpoint address."B" stands for Binding—as expressed in the wsdl:binding section and binds a wsdl:portType contract description to a concrete transport, an envelope format and associated policies."C" stands for Contract—as expressed in the wsdl:portType, wsdl:message and wsdl:type sections and describes types, messages, message exchange patterns and operations."ABC" means that writing (and configuring) a WCF service is always a three-step process:You define a contract and implement it on a serviceYou choose or define a service binding that selects a transport along with quality of service, security and other optionsYou deploy an endpoint for the contract by binding it (using the binding definition, hence the name) to a network address.It is important to note is that these three elements are independent. A contract can support many bindings and a binding can support many contracts. A service can have many endpoints (contract bound to address) coexisting and available at the same time. So if you want to expose your service via HTTP and use SOAP 1.1 for maximum interoperability, and also want to expose it via TCP using a binary wire encoding for maximum performance, the two resulting endpoints can reside side-by-side on top of the very same service.Of course, not all bindings necessarily satisfy the needs of a given service contract or service implementation. If a service does, for instance, absolutely depend on certain security aspects, reliable messaging, transaction flow, or other features, it can demand that any binding that is used for exposing endpoints must support them. If a binding does not support the demanded features, the WCF runtime will detect the feature mismatch and will refuse to start the service.

    Khan Abrar Ahmed
    April 16, 2014
    2

    ABC is the three building block of Windows Communication Foundation they are known as ADDRESS: Its define "where" is the URL that define location of your service. BINDING : Its define "How" , how can you services access. CONTRACT: Its define the "What" specific interface between the client or the server.

    Nayeem Mansoori
    June 04, 2014
    1

    ABC is the three building blocks of WCF and they are known as A - Address (Where): Address tells us where to find the services, like url B - Bindings (How) : Bindings tells us how to find the services or using which protocols finds the services (SOAP, HTTP, TCT etc.) C - Contacts (What): Contracts are an agreement between the consumer and the service providers that explains what parameters the service expects and what return values it gives. Hope this will be very helpful to understand three building blocks of WCF, a very frequently asked interview questions.

    Munesh Sharma
    April 15, 2014
    1

    ABC is the three building blocks of WCF and they are known as A - Address (Where): Address tells us where to find the services, like url B - Bindings (How) : Bindings tells us how to find the services or using which protocols finds the services (SOAP, HTTP, TCT etc.) C - Contacts (What): Contracts are an agreement between the consumer and the service providers that explains what parameters the service expects and what return values it gives. Hope this will be very helpful to understand three building blocks of WCF, a very frequently asked interview questions.

    Munesh Sharma
    April 15, 2014
    0

    A-Address B-Binding C-Contract

    ashok rathod
    April 07, 2014
    0