Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out

Introduction to WCF 3.5

VIEWS: 1 PAGES: 17

  • pg 1
									                     Saravanakumar S
             Senior Software Engineer
e-Mail: Saravanakumar38@gmail.com
Agenda
 What is WCF?
 Common Deployment Scenarios
 Services and Client
 Metadata and Proxy creation
 WCF features
What is WCF?
 Part of Microsoft Framework 3.0
    Part of the Windows Vista operating system and
     windows server 2008 and higher version
    Supported by Windows XP SP2 and windows server
     2003
 Microsoft platform for SOA
 Unifies ASMX, .Net Remoting and MSMQ etc
 Programming platform and runtime system for
 building, configuring and deploying network-
 distributed services
Common Deployment Scenarios
 Intranet Application
 Business partners
 Web Applications
 SOA application
Intranet Application                            Intranet
                                                 Client

 WCF supports Client-Server
                                                             Windows
 deployment
                                                                         Active
   Mutual windows authentication                                      Directory1
                                                       TCP

   TCP/binary messing
   Windows credential for
                                    NetTcpBinding
    message protection
                                                Service
 Service distribution across                                               1 Active

                                                                             Directory®
 process or machine boundaries                 Business
                                             Components                      directory
                                                                             service

                                                    DALC
Business Partner or Cross Machine
                                                 Internet Client
                                               (Business Partner)

 WCF supports mutual certificate
  authentication
                                                               Certificate
    Transfer security provided by the
     transport or via message security             HTTP


    Certificate authentication
                                                                     Certificate
                                                                       Store
 HTTP/Text or HTTP/MTOM                  WSHttpBinding


    For business partner scenario                   Service

 TCP/binary                                       Business
                                                  Components
    For machine-to-machine
     authentication behind the firewall               DALC
                                           Browser



Web Application                            HTTPS



                                                          UserName
 WCF can expose business                                                  aspnetdb
                                       ASP.NET
 functionality to web                  Application

 applications
   Mutual certificate behind                        Certificate
                                     TCP
    firewall
   TCP/binary for performance                                     Certificate
                                                                     Store


 Provides a security boundary for         Service
  ASP. Net applications
 Enables distribution of work          Business
                                       Components

  across process or machine
                                           DALC
  boundaries
SOA
 WCF services are a strategic part of SOA
 Service supporting
    Web applications
    Internal/external client applications
    Business partners integration
 Distribution of business functionality
      Internet Client   Internet Client
                                                    Browser
      (Basic Profile)       (WS*)


                HTTPS              HTTP                      HTTPS




                                                   ASP.NET
                                                   Application




                                                    NetTcp
                                          WSHttp


                                   BasicHttp


                                                     Service


                                                    Business
                                                   Components


                                                   Data Access


SOA
Service & Client

   Client                             A   B   C       Service

                                      A   B   C
   Proxy     A   B    C                              Service Host




            Address         Binding       Contract
            Where?           How?          What?

                          End Point
Service & Client
 Sample Demo
Basic requirements
 Service
    Define and implement a service contract
    Construct a ServiceHost instance for the service type ,
     exposing endpoint.
    Open the communication channel
 Client
    Requires a copy of the service contract and information
     about endpoints
    Construct a communication channel for a particular
     endpoint and call operation
Metadata and Proxy creation
 Client and service should share contracts not code
 Web Service Description Language(WSDL)
   Interoperable contract
   Describes a service and its endpoints,
   Binding and operations
   Message and type definitions
   Polices
 Used to generate client proxies, configuration
Contract and Metadata
 Sample Demo
WCF Features
 Contracts and Serialization
 Exceptions and faults
 Bindings and protocols
 Hosting environment
 Instancing and throttling
 Security
 Reliable messaging and queued calls
 Transactions
Thank you
Questions

								
To top