Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Difference between proxy and channel factory in wcf

This provides difference between proxy and channel factory in wcf

  • Login to see the comments

Difference between proxy and channel factory in wcf

  1. 1. 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.
  2. 2. 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: