實戰Wcf

338 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
338
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

實戰Wcf

  1. 1. 流浪小風2012.5.24
  2. 2. 什麼是WCF? Window Communication Foundation A solution for developers to work in distributing environment. make communication between applications. a framework for developing, configuring, exposing, and hosting services. a combination of SOAP and web service.
  3. 3. Why WCF? Integration Security Reliable Transaction Extensible Strong Type Flexible
  4. 4. Cross Platform -4-
  5. 5. WCF三要素 A C B -5-
  6. 6. A stands for Address Address tells us where to find the services  http://servicehost/service  net.tcp:// servicehost/service
  7. 7. B stands for Binding Bindings tells us how to find the services or using which protocols finds the services  HTTP  TCP  NamedPipe  Peer2Peer  MSMQ
  8. 8. C stands for Contract Contracts are an agreement between the consumer and the service providers that explains what parameters the service expects and what return values it gives.
  9. 9.  A stands for Address B stands for Binding C stands for Contract -9-
  10. 10. Demo Create a simple wcf service  Class Library with Service Contract Attribute  Hosting
  11. 11. Hosting Options Self-hosting in any managed .NET application Hosting in a Windows service Hosting in different versions of IIS - 11 -
  12. 12. Demo Web Hosting (svc) Self-hosting
  13. 13. What can WCF do? Not only a Web Service Communication between applications Website and APs
  14. 14. Demo A website monitor portal to see process percentage in console.
  15. 15. Instance Mode PerCall PerSession Single
  16. 16. Duplex Service Not long polling Push from server to client
  17. 17. Demo One way request Server push data when process finish
  18. 18. More Map Service (picture download) Server-Client Ap Use website to control AP
  19. 19. Q&A

×