20
N aresh I nformation Technologies T echnologies Nagaraju Bende [email protected] MCPD.NET Sr Consultant,Trainer http://nbende.wordpress.com

Wcf v1-day1

Embed Size (px)

Citation preview

Page 1: Wcf v1-day1

Naresh InformationTechnologiesTechnologies

Nagaraju [email protected]

MCPD.NET Sr Consultant,Trainer

http://nbende.wordpress.com

Page 2: Wcf v1-day1

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

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

Roadmap

�������������� �����������������

Page 5: Wcf v1-day1

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

• 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

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

Remoting & Web Services

�������������� �����������������

Remoting & Web Services

Page 9: Wcf v1-day1

.NET Remoting Architecture

��������������������������

������������������

�� ��� �

�������������� �����������������

!��!�� ��������"��"�� #��#��"��"�� $�$�

%&�'%&�' %&�'%&�'("���$("���$ ("���$("���$'��#$'��#$ )"�������)"�������

*��*��

+�����,+�����,-..'-..'.+'.+'�� ��� �+�����,+�����,

Page 10: Wcf v1-day1

XML Web Services Message Flow

���

���������

���������

'�����!�%��"�,"/�

'�����!!�)����"�,"/�

������� ����

���������������� �������������������� � ������������������� ���������������������������� �����������������������������

�������������� �����������������

�������������������

������

���������

���������

'�����!!!%��"�,"/�

'�����!0)����"�,"/�

�������������

Page 11: Wcf v1-day1

Windows Communication Foundation

The old way of easily exposing components (ASMX):

�� ���!������

��"������������

�������������� �����������������

��"������������

# ��������

Page 12: Wcf v1-day1

Windows Communication Foundation

The new way of easily exposing components (WCF):

�� ���!������

�������������$��

�������������� �����������������

# ��#��� ���#��� %���#��� �&�#���

# �������� ��������� %��������� �&�������

�������������$��

Page 13: Wcf v1-day1

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

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

Questions

�������������� �����������������

Page 16: Wcf v1-day1

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

Windows Communication Foundation

The old way of easily exposing components (ASMX):

�� ���!������

��"������������

�������������� �����������������

��"������������

# ��������

Page 18: Wcf v1-day1

SOA

������

� � ��� �� � � � �� � ��

�������������� �����������������

� � ��� �� � � �

�� � ��� � �

�� � ��

� � � ���� � � �� � ��� � � � � ���� � � � � � ��� �� � � � � � �� �����

Page 19: Wcf v1-day1

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

BackUp Slides

�������������� �����������������