Difference between proxy and channel factory in wcf
Difference between Proxy and Channel Factory in WCFS.No Proxy Channel Factory1 What is the prerequisite forProxy ?Only require URL where theservice resides .What is the prerequisite forChannel Factory ?We must have direct access to theassembly that contains that servicecontract T for.2 In terms of complexity ?Very Simpler.In terms of complexity ?Not easier.3 In terms of understandability?Easy to Understand.In terms of understandability ?Channels are complex, network-related.4 How to use Proxy ?There is Visual Studio gives usadd the reference.How to use Channel Factory ?When we share a common servicecontract dll between the client andthe server, we will be using theChannelFactory class.5 When we will go for Proxy ?If we know that our entities willchange much and the clientcode is more, then we need togo for Proxy.Proxy has following limitations,1. Properties need to havegets and sets2. Constructors cannot beexposed3. Methods other than theservice contract cannotbe exposedWhen we will go for ChannelFactory ?If we know that our entities will notchange much and the client code isless, then a DLL would work betterthan a Proxy.
6 How to create Proxy ?By using SVCutil.exe we willcreate PRoxyHow to create Channel Factory ?When we are using DLL that refersService contract interface then usethe channel factory classReferences:http://www.sujitbhujbal.com/2012/03/difference-between-proxy-and-channel.htmlhttp://www.codeproject.com/Tips/558163/Difference-between-Proxy-and-Channel-Factory-in-WC