Naresh InformationTechnologiesTechnologies
Nagaraju BendeMCPD.NET Sr Consultant,Trainer
http://nbende.wordpress.com
Agenda – Session 2
Evolution of SOA in .NET
WCF for Services Development
�������������� �����������������
WCF Programming Basics - ���
WCF Hosting
.NET support for WCF Service
SOA
������
� � ��� �� � � � �� � ��
�������������� �����������������
� � ��� �� � � �
�� � ��� � �
�� � ��
� � � ���� � � �� � ��� � � � � ���� � � � � � ��� �� � � � � � �� �����
Evolution of Services in .NET
� � �
������������������
� � � � � �
!"� � � !" � ��
��������������� ����������������������� ��� �����!�"#�������
�������������� �����������������
���������������!�$%��&���'((�
�����������������!�)����������(*����&���+����������
������ �����������,�������������������������
�����!�"#�������������������� ��������-
# � � $ �% � �� �
� �� � ��
& � � �
ASMX .NET Remoting
Next generation of ASMX is WCF (2)������������� ������������������� ������
������������������������������������
��������������������������������
������������������������
�������������� �����������������
InteropInteropwith otherwith otherplatformsplatforms
AttributeAttribute--BasedBased
ProgrammingProgramming
Enterprise Services
WSWS--**ProtocolProtocolSupportSupport
WSE
MessageMessage--OrientedOriented
ProgrammingProgramming
System.Messaging
ExtensibilityExtensibilityLocation Location
transparencytransparency
Remoting
WCF End Point
�������������� �����������������
WCF Service Content
�� �������������������������������������������������� ������������������������������������������������������������������������������������������������������������������������������������������������������������������
�������������� �����������������
EndPoint
�������������� �����������������
• A network address wherewhere the EndPointresides
• Examples– http://silverkey.com/services/demoday.svc– net.tcp://192.168.1.200:3000/service1
AddressAddress
�������������� �����������������
– net.tcp://192.168.1.200:3000/service1– net.msmq://myserver/private/testQueue
• Specifies howhow the EndPoint communicates with the world
• Defines things like– Transport (eg. HTTP, TCP )– Encoding (Text, Binary, MTOM )
BindingBinding
�������������� �����������������
– Encoding (Text, Binary, MTOM )– Security Options (SSL, Message security)
• Examples– BasicHttpBinding, NetTcpBinding,
NetMsmqBinding, NetNamedPipesBinding … etc
• Specifies whatwhat the EndPoint communicates• Defines things like
– Message Exchange Patterns (one-way, duplex …)
– Service Operations
ContractContract
�������������� �����������������
– Service Operations– Behaviors (Exchange Meta-Data, Impersonation,
Authorization … etc)