ACTIVE LEARNING ASSIGNMENT
.NET TECHNOLOGY(2160711)
PREPARED BY:
1.140800107067
2. 140800107070
 WCF introduction
 Key characteristics of WCF
 ABC of WCF
 Architecture
INCLUDES
*
INTRODUCTION
Windows Communication
Foundation
Unified framework for
rapidly building
service-oriented
applications
 WCF(codename Indigo) is a unified
communication framework for distributed
application.
 It is a new technology introduced by
microsoft in .NET framework for building and
running connected system.
Window communication
foundation
 WCF defines a common programming
model and unified API for clients and
services to sends messages between
each other.
 WCF is current and future standard for
distributed .NET application
WCF
Key Characteristics of WCF
 Service-oriented programming model
(SOA)
 Interoperability with non-WCF web
services due to use of SOAP messages
 Extensibility
 Entry point of service
 WCF client connects to WCF Service via an endpoint.
Syntax:
<service…>
<endpoint address:”” binding:”” contract:”” />
…
</service>
Endpoint
ABC of WCF
A : Address(Where)
B :Binding(How)
C : Contract(What)
Address(A in ABC)
The WCF address defines where a web service
(endpoint) is accessible. WCF models an address as an
endpoint reference (EPR) as per the WS-Addressing
standard.
Example endpoint address URI:
http://localhost:8000/HSZ-TWSMW/DateTimeService
http: System Protocol
8000: Port Number
localhost: Machine IP address
HSZ-TWSMW/DateTimeService: Path under which
service.
Binding(B in ABC)
The binding defines how a web service
endpoint is accessed.
A binding contains the following elements:
Transport Protocol
Message Encoding
Security/Reliability Setting
Binding & Binding Elements
Transport
IPCMSMQ
Custom
TCP HTTP
ProtocolEncoders
.NETTX
Custom
Security Reliability
Binding
HTTP TXSecurity ReliabilityText
Text
Binary
Custom
Contracts(C in ABC)
WCF interfaces are called “contracts” (both
client and server must comply with the
contract). Contracts describe operations, data
structures and messages.
Types of Contract:
Service Contract
Data Contract
Message Contract
Operation Contract
Architecture
WCF

WCF

  • 1.
    ACTIVE LEARNING ASSIGNMENT .NETTECHNOLOGY(2160711) PREPARED BY: 1.140800107067 2. 140800107070
  • 2.
     WCF introduction Key characteristics of WCF  ABC of WCF  Architecture INCLUDES
  • 3.
  • 4.
    Windows Communication Foundation Unified frameworkfor rapidly building service-oriented applications
  • 5.
     WCF(codename Indigo)is a unified communication framework for distributed application.  It is a new technology introduced by microsoft in .NET framework for building and running connected system. Window communication foundation
  • 6.
     WCF definesa common programming model and unified API for clients and services to sends messages between each other.  WCF is current and future standard for distributed .NET application WCF
  • 7.
    Key Characteristics ofWCF  Service-oriented programming model (SOA)  Interoperability with non-WCF web services due to use of SOAP messages  Extensibility
  • 8.
     Entry pointof service  WCF client connects to WCF Service via an endpoint. Syntax: <service…> <endpoint address:”” binding:”” contract:”” /> … </service> Endpoint
  • 9.
    ABC of WCF A: Address(Where) B :Binding(How) C : Contract(What)
  • 10.
    Address(A in ABC) TheWCF address defines where a web service (endpoint) is accessible. WCF models an address as an endpoint reference (EPR) as per the WS-Addressing standard. Example endpoint address URI: http://localhost:8000/HSZ-TWSMW/DateTimeService http: System Protocol 8000: Port Number localhost: Machine IP address HSZ-TWSMW/DateTimeService: Path under which service.
  • 11.
    Binding(B in ABC) Thebinding defines how a web service endpoint is accessed. A binding contains the following elements: Transport Protocol Message Encoding Security/Reliability Setting
  • 12.
    Binding & BindingElements Transport IPCMSMQ Custom TCP HTTP ProtocolEncoders .NETTX Custom Security Reliability Binding HTTP TXSecurity ReliabilityText Text Binary Custom
  • 13.
    Contracts(C in ABC) WCFinterfaces are called “contracts” (both client and server must comply with the contract). Contracts describe operations, data structures and messages. Types of Contract: Service Contract Data Contract Message Contract Operation Contract
  • 14.