SlideShare una empresa de Scribd logo
1 de 16
Windows Communication Foundation Getting Started Andriy Buday http://andriybuday.com/
[object Object],[object Object],[object Object],[object Object],[object Object],Outline
Windows Communication Foundation Unified framework for  rapidly building service-oriented applications
What does WCF replace?
[object Object],[object Object],[object Object],[object Object],DEMO 1: Just to get started with something… Damn it! Let’s write some code!
Understanding WCF Principles Client Service Message Message
Client Service Message Endpoint Endpoint Endpoint
Client Service Message Address Binding Contract (Where) (How) (What) Endpoints Endpoint A B C A B C A B C
[object Object],[object Object],[object Object],[object Object],DEMO 2: Endpoints Damn it! Let’s configure it!
[object Object],[object Object],[object Object],[object Object],DEMO 3: Client & Hosting Damn it! Let’s use & spread it!
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Links
Read blog! Follow me! Mail me! @andriybuday http://andriybuday.com/ [email_address]
[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Security
Standard Bindings Binding  Interop Security Session TX Duplex  BasicHttpBinding  BP 1.1 N, T N N n/a WSHttpBinding  WS M , T, X N , T, RS N , Yes n/a WSDualHttpBinding  WS M RS N , Yes Yes WSFederationBinding  Federation M N , RS N , Yes No NetTcpBinding  .NET T , M T  ,RS N , Yes Yes NetNamedPipeBinding  .NET T T , N N , Yes Yes NetPeerTcpBinding  Peer T N N Yes NetMsmqBinding  .NET T , M, X N N , Yes No MsmqIntegrationBinding  MSMQ T N N , Yes n/a
Ways to talk ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Client Service One Way Request-Reply Duplex (Dual)

Más contenido relacionado

Similar a Windows Communicaiton Foundation

introduction to Windows Comunication Foundation
introduction to Windows Comunication Foundationintroduction to Windows Comunication Foundation
introduction to Windows Comunication Foundationredaxe12
 
Petar Vucetin Soa312 Building Secure Web Services Using Windows Communica...
Petar Vucetin   Soa312   Building Secure Web Services Using Windows Communica...Petar Vucetin   Soa312   Building Secure Web Services Using Windows Communica...
Petar Vucetin Soa312 Building Secure Web Services Using Windows Communica...petarvucetin
 
Petar Vucetin Soa312 Building Secure Web Services Using Windows Communica...
Petar Vucetin   Soa312   Building Secure Web Services Using Windows Communica...Petar Vucetin   Soa312   Building Secure Web Services Using Windows Communica...
Petar Vucetin Soa312 Building Secure Web Services Using Windows Communica...petarvucetin2
 
1. WCF Services - Exam 70-487
1. WCF Services - Exam 70-4871. WCF Services - Exam 70-487
1. WCF Services - Exam 70-487Bat Programmer
 
Top wcf interview questions
Top wcf interview questionsTop wcf interview questions
Top wcf interview questionstongdang
 
10135 a 06
10135 a 0610135 a 06
10135 a 06Bố Su
 
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...Jason Townsend, MBA
 
Compression Oracle Attacks on VPN Networks
Compression Oracle Attacks on VPN NetworksCompression Oracle Attacks on VPN Networks
Compression Oracle Attacks on VPN NetworksPriyanka Aash
 
Basics of WCF and its Security
Basics of WCF and its SecurityBasics of WCF and its Security
Basics of WCF and its SecurityMindfire Solutions
 
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Jorgen Thelin
 
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONDeepika Chaudhary
 
Windows Communication Foundation
Windows Communication FoundationWindows Communication Foundation
Windows Communication FoundationDavid Truxall
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorialAbhi Arya
 
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
Service Oriented Development With Windows Communication Foundation   Tulsa DnugService Oriented Development With Windows Communication Foundation   Tulsa Dnug
Service Oriented Development With Windows Communication Foundation Tulsa DnugJason Townsend, MBA
 
Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003Jason Townsend, MBA
 
What I did on my summer vacation (in Hursley)
What I did on my summer vacation (in Hursley)What I did on my summer vacation (in Hursley)
What I did on my summer vacation (in Hursley)T.Rob Wyatt
 
Romulus Crisan - Information exchange using hybrid azure integration - codeca...
Romulus Crisan - Information exchange using hybrid azure integration - codeca...Romulus Crisan - Information exchange using hybrid azure integration - codeca...
Romulus Crisan - Information exchange using hybrid azure integration - codeca...Codecamp Romania
 

Similar a Windows Communicaiton Foundation (20)

introduction to Windows Comunication Foundation
introduction to Windows Comunication Foundationintroduction to Windows Comunication Foundation
introduction to Windows Comunication Foundation
 
Petar Vucetin Soa312 Building Secure Web Services Using Windows Communica...
Petar Vucetin   Soa312   Building Secure Web Services Using Windows Communica...Petar Vucetin   Soa312   Building Secure Web Services Using Windows Communica...
Petar Vucetin Soa312 Building Secure Web Services Using Windows Communica...
 
Petar Vucetin Soa312 Building Secure Web Services Using Windows Communica...
Petar Vucetin   Soa312   Building Secure Web Services Using Windows Communica...Petar Vucetin   Soa312   Building Secure Web Services Using Windows Communica...
Petar Vucetin Soa312 Building Secure Web Services Using Windows Communica...
 
1. WCF Services - Exam 70-487
1. WCF Services - Exam 70-4871. WCF Services - Exam 70-487
1. WCF Services - Exam 70-487
 
Top wcf interview questions
Top wcf interview questionsTop wcf interview questions
Top wcf interview questions
 
10135 a 06
10135 a 0610135 a 06
10135 a 06
 
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
Tulsa Tech Fest2008 Service Oriented Development With Windows Communication F...
 
Day6
Day6Day6
Day6
 
Compression Oracle Attacks on VPN Networks
Compression Oracle Attacks on VPN NetworksCompression Oracle Attacks on VPN Networks
Compression Oracle Attacks on VPN Networks
 
Basics of WCF and its Security
Basics of WCF and its SecurityBasics of WCF and its Security
Basics of WCF and its Security
 
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
Overview of Windows Vista Devices and Windows Communication Foundation (WCF)
 
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATION
 
Windows Communication Foundation
Windows Communication FoundationWindows Communication Foundation
Windows Communication Foundation
 
WCF
WCFWCF
WCF
 
WCF tutorial
WCF tutorialWCF tutorial
WCF tutorial
 
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
Service Oriented Development With Windows Communication Foundation   Tulsa DnugService Oriented Development With Windows Communication Foundation   Tulsa Dnug
Service Oriented Development With Windows Communication Foundation Tulsa Dnug
 
Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003Service Oriented Development With Windows Communication Foundation 2003
Service Oriented Development With Windows Communication Foundation 2003
 
What I did on my summer vacation (in Hursley)
What I did on my summer vacation (in Hursley)What I did on my summer vacation (in Hursley)
What I did on my summer vacation (in Hursley)
 
WCF 35
WCF 35WCF 35
WCF 35
 
Romulus Crisan - Information exchange using hybrid azure integration - codeca...
Romulus Crisan - Information exchange using hybrid azure integration - codeca...Romulus Crisan - Information exchange using hybrid azure integration - codeca...
Romulus Crisan - Information exchange using hybrid azure integration - codeca...
 

Más de Andriy Buday

NHibernate from inside
NHibernate from insideNHibernate from inside
NHibernate from insideAndriy Buday
 
Domain-Driven Design
Domain-Driven DesignDomain-Driven Design
Domain-Driven DesignAndriy Buday
 
Mock Objects Presentation
Mock Objects PresentationMock Objects Presentation
Mock Objects PresentationAndriy Buday
 
Inversion of Control and Dependency Injection
Inversion of Control and Dependency InjectionInversion of Control and Dependency Injection
Inversion of Control and Dependency InjectionAndriy Buday
 
Service Oriented Architecture
Service Oriented ArchitectureService Oriented Architecture
Service Oriented ArchitectureAndriy Buday
 

Más de Andriy Buday (7)

NHibernate from inside
NHibernate from insideNHibernate from inside
NHibernate from inside
 
Domain-Driven Design
Domain-Driven DesignDomain-Driven Design
Domain-Driven Design
 
Auto mapper
Auto mapperAuto mapper
Auto mapper
 
Mock Objects Presentation
Mock Objects PresentationMock Objects Presentation
Mock Objects Presentation
 
Inversion of Control and Dependency Injection
Inversion of Control and Dependency InjectionInversion of Control and Dependency Injection
Inversion of Control and Dependency Injection
 
Service Oriented Architecture
Service Oriented ArchitectureService Oriented Architecture
Service Oriented Architecture
 
NHibernate
NHibernateNHibernate
NHibernate
 

Windows Communicaiton Foundation

  • 1. Windows Communication Foundation Getting Started Andriy Buday http://andriybuday.com/
  • 2.
  • 3. Windows Communication Foundation Unified framework for rapidly building service-oriented applications
  • 4. What does WCF replace?
  • 5.
  • 6. Understanding WCF Principles Client Service Message Message
  • 7. Client Service Message Endpoint Endpoint Endpoint
  • 8. Client Service Message Address Binding Contract (Where) (How) (What) Endpoints Endpoint A B C A B C A B C
  • 9.
  • 10.
  • 11.
  • 12. Read blog! Follow me! Mail me! @andriybuday http://andriybuday.com/ [email_address]
  • 13.
  • 14.
  • 15. Standard Bindings Binding Interop Security Session TX Duplex BasicHttpBinding BP 1.1 N, T N N n/a WSHttpBinding WS M , T, X N , T, RS N , Yes n/a WSDualHttpBinding WS M RS N , Yes Yes WSFederationBinding Federation M N , RS N , Yes No NetTcpBinding .NET T , M T ,RS N , Yes Yes NetNamedPipeBinding .NET T T , N N , Yes Yes NetPeerTcpBinding Peer T N N Yes NetMsmqBinding .NET T , M, X N N , Yes No MsmqIntegrationBinding MSMQ T N N , Yes n/a
  • 16.

Notas del editor

  1. 1980s - Object Oriented 1990s – Component Based (dynamic loading) 2000s – Service Oriented (doing messages.. That is when we think about distributed envirountemnt) WCF – is unified framework for building service oriented applications. Windows Communication Framework – what the HECK does that mean? WCF, WPF, WF, Microsoft’s merry-go-round of acronyms seems to have experienced exponential growth with the releases of 3.0 and 3.5. Is it all just marketing hype? Fortunately, no! WCF was first released in 3.0, and lives in its most current form in 3.5. WCF puts a wide swath of .NET service technologies all under the same roof. Windows Communication Framework utilizes declarative and configuration-driven programming to enable you to define multiple endpoints against the same code. In a lot of ways, it is very much a hybrid of legacy ASMX, WSE, Web Service Enhancements and remoting all in one. Juval Lowy very rightly describes WCF as “plumbing,” and as “an SDK for developing and deploying services on Windows.”
  2. Replaces ASMX services. Web Services Enhancements ( WSE ) is an add-on to the Microsoft .NET Framework which includes a set of classes that implement additional WS-* Web service specifications chiefly in areas such as security, reliable messaging, and sending attachments. [1] Web Services are business logic components which provide functionality via the Internet using standard protocols such as HTTP. Web services communicate via either SOAP or REST messages. WSE provides extensions to the SOAP protocol and allows the definition of custom security, reliable messaging, policy, etc. All the COM+ services that are available today are available to .NET and COM objects. Some of these services include, transactions, object pooling and construction strings, JIT, synchronization, role-based security, CRM and BYOT.
  3. TodoItem Content Priority IsDone DateTimeSent ITodoService Void SubmitTodo(TodoItem) List<TodoItem> GetTodoItems(); Void RemoveTodo(string id); [ServiceBehaviour(… InstanceContextMode] TodoService Endpoint Change first endpoint Talk on Metadata endpoint Talk on testing tool wcftestclient Time for me [13]
  4. What is Endpoint. Take a look on existing configuraiton. Address, Binding, Contract Address – is where should we talk to our service – the actual network address Binding – how should we communication (transport protocol, wc…) Contract – what the service should contain… Talk more on the mex binding!!! Base address … Press F5 and talk where from metadata is downloaded and more on test client, what does it have etc.. Change base address to localhost:8080/todoservice Change the address for the first endpoint (ws) Add new endpoint basic basicHttpBinding ---- is basic SOAP interactions Contract is the same! Show how to add enpoint through the wisard TCP // evalservice New one: NamedPipes.. – is for the same machine!! Show config once again! Show the client and how it differs now I can simply choose! show from one, then from another HIGLIGHT that this is the main key feature of the WCF! you don’t need to rewrite your code once again Time [12]
  5. IIS hosting - new WCF site - delete existing services - add reference - rename svc file - specify TodoServiceLibrary.TodoService and don’t need code behind it - Configure our web.config - change name of the service - reconfigure to use ITodoService - IIS version plays role - view in browser for svc file May show loading metadata from the IIS hosted application Map directory the the site’s directory! Hosting in Win Service! ServiceHost host … typeof(TodoService) host.Start(), host.Close() serviceMetadata httpGetEnabled = true Create installer, change User account to LocalSystem build project ? wsdl