Thursday, April 28, 2016

WCF Part 1 : Introduction


Windows Communication Foundation (WCF) 

Chapter 1 : Introduction







Code Base Name : Indigo
WCF is a programming platform and run-time system for building, configuring and deploying network distributed system.

Advantage


  • WCF is inter-operable with other services when compared to .Net Remoting,where the client and service have to be .Net. 
  • WCF services provide better reliability and security in compared to ASMX web services
  • In WCF, there is no need to make much change in code for implementing the security model and changing the binding. Small changes in the configuration will make your requirements. 
  • WCF has integrated logging mechanism, changing the configuration file settings will provide this functionality. In other technology developer has to write the code. 


Disadvantage

Making right design for your requirement is little bit difficult.

Different between web service and WCF Service

FeaturesWeb ServiceWCF
HostingIt can be hosted in IISIt can be hosted in IIS, windows activation service, Self-hosting, Windows service
Programming[WebService] attribute has to be added to the class[ServiceContraact] attribute has to be added to the class
Model[WebMethod] attribute represents the method exposed to client[OperationContract] attribute represents the method exposed to client
OperationOne-way, Request- Response are the different operations supported in web serviceOne-Way, Request-Response, Duplex are different type of operations supported in WCF
XMLSystem.Xml.serialization name space is used for serializationSystem.Runtime.Serialization namespace is used for serialization
EncodingXML 1.0, MTOM(Message Transmission Optimization Mechanism), DIME, CustomXML 1.0, MTOM, Binary, Custom
TransportsCan be accessed through HTTP, TCP, CustomCan be accessed through HTTP, TCP, Named pipes, MSMQ,P2P, Custom
ProtocolsSecuritySecurity, Reliable messaging, Transactions

No comments:

Post a Comment