wcf v1-day1
TRANSCRIPT
![Page 1: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/1.jpg)
Naresh InformationTechnologiesTechnologies
Nagaraju [email protected]
MCPD.NET Sr Consultant,Trainer
http://nbende.wordpress.com
![Page 2: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/2.jpg)
Agenda – Session 1
Distributed Programming
What are Services
Service Oriented Architecture
�������������� �����������������
Service Oriented Architecture
Service Oriented Applications/Programming
Remoting and Web Services in .NET
WCF & its Essentials
![Page 3: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/3.jpg)
Distributed Applications
• Communication between multiple server applications or services in the network– Must be capable to run behind firewalls
�������������� �����������������
– Must be capable to run behind firewalls– Some share common protocols (SOAP,
WSDL), but not a common platform– Some share common protocols and
common platform (e.g., .NET)
![Page 4: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/4.jpg)
Roadmap
�������������� �����������������
![Page 5: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/5.jpg)
What is a Service ?
• Self Contained business function
• Functionality exposed via a structured messaging scheme
�������������� �����������������
• Not just XML, not just HTTP– XML, SOAP, JSON, Images .. etc– TCP, HTTP, Message Queues … etc
![Page 6: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/6.jpg)
• Focus: messages sent and received–Moves from a Client/Server model
to a Sender/Receiver model• Rich communication patterns and
Service Orientation
�������������� �����������������
• Rich communication patterns and functionality
• Big Win is versioning independence
![Page 7: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/7.jpg)
Service Oriented Architecture
• A set of components which can be invoked, and whose interface descriptions can be published and discovered
�������������� �����������������
![Page 8: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/8.jpg)
Remoting & Web Services
�������������� �����������������
Remoting & Web Services
![Page 9: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/9.jpg)
.NET Remoting Architecture
��������������������������
������������������
�� ��� �
�������������� �����������������
!��!�� ��������"��"�� #��#��"��"�� $�$�
%&�'%&�' %&�'%&�'("���$("���$ ("���$("���$'��#$'��#$ )"�������)"�������
*��*��
+�����,+�����,-..'-..'.+'.+'�� ��� �+�����,+�����,
![Page 10: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/10.jpg)
XML Web Services Message Flow
���
���������
���������
'�����!�%��"�,"/�
'�����!!�)����"�,"/�
������� ����
���������������� �������������������� � ������������������� ���������������������������� �����������������������������
�������������� �����������������
�������������������
������
���������
���������
'�����!!!%��"�,"/�
'�����!0)����"�,"/�
�������������
![Page 11: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/11.jpg)
Windows Communication Foundation
The old way of easily exposing components (ASMX):
�� ���!������
��"������������
�������������� �����������������
��"������������
# ��������
![Page 12: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/12.jpg)
Windows Communication Foundation
The new way of easily exposing components (WCF):
�� ���!������
�������������$��
�������������� �����������������
# ��#��� ���#��� %���#��� �&�#���
# �������� ��������� %��������� �&�������
�������������$��
![Page 13: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/13.jpg)
WCF in Simple terms
• One-stop-shop for services• Consistent object model• Great features• 1st released with .NET Framework 3.0
�������������� �����������������
• 1st released with .NET Framework 3.0– Vista, WinServer 2003, Win XP SP2
Focus on the functionality, WCF takes care of the complete infrastructure
![Page 14: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/14.jpg)
The unified programming model for rapidly building service-oriented applications
WCF – little more detailed
Unifies today’s distributed technology stacks
Appropriate for use on-machine, cross machine, and cross Internet
Unification
�������������� �����������������
Interoperates with applications running on other platforms
Integrates with our own distributed stacks
Rich
Integration
• Codifies best practices for building distributed applicationsService
Orientation
![Page 15: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/15.jpg)
Questions
�������������� �����������������
![Page 16: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/16.jpg)
Terms of WCF
• Service – collection of endpoints• Message • Endpoint – point of access to the service• ABC
– Address (WHERE)
�������������� �����������������
– Address (WHERE)– Binding (HOW)– Contract (WHAT)
• Metadata• Bahavior• ServiceHost• Proxy
![Page 17: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/17.jpg)
Windows Communication Foundation
The old way of easily exposing components (ASMX):
�� ���!������
��"������������
�������������� �����������������
��"������������
# ��������
![Page 18: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/18.jpg)
SOA
������
� � ��� �� � � � �� � ��
�������������� �����������������
� � ��� �� � � �
�� � ��� � �
�� � ��
� � � ���� � � �� � ��� � � � � ���� � � � � � ��� �� � � � � � �� �����
![Page 19: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/19.jpg)
References
• http://msdn.microsoft.com/en-us/ library/aa480021.aspx – For SOA
• http://en.wikipedia.org/wiki/Service-oriented_architecture -- For SOA
�������������� �����������������
oriented_architecture -- For SOA
![Page 20: Wcf v1-day1](https://reader034.vdocuments.site/reader034/viewer/2022052311/55850ce7d8b42ac10a8b499d/html5/thumbnails/20.jpg)
BackUp Slides
�������������� �����������������