SlideShare a Scribd company logo
1 of 2
Difference between Proxy and Channel Factory in WCF
S.No Proxy Channel Factory
1 What is the prerequisite for
Proxy ?
Only require URL where the
service resides .
What is the prerequisite for
Channel Factory ?
We must have direct access to the
assembly that contains that service
contract 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 us
add the reference.
How to use Channel Factory ?
When we share a common service
contract dll between the client and
the server, we will be using the
ChannelFactory class.
5 When we will go for Proxy ?
If we know that our entities will
change much and the client
code is more, then we need to
go for Proxy.
Proxy has following limitations,
1. Properties need to have
gets and sets
2. Constructors cannot be
exposed
3. Methods other than the
service contract cannot
be exposed
When we will go for Channel
Factory ?
If we know that our entities will not
change much and the client code is
less, then a DLL would work better
than a Proxy.
6 How to create Proxy ?
By using SVCutil.exe we will
create PRoxy
How to create Channel Factory ?
When we are using DLL that refers
Service contract interface then use
the channel factory class
References:
http://www.sujitbhujbal.com/2012/03/difference-between-proxy-and-channel.html
http://www.codeproject.com/Tips/558163/Difference-between-Proxy-and-Channel-Factory-
in-WC

More Related Content

More from Umar Ali

Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Umar Ali
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcUmar Ali
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sitesUmar Ali
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamilUmar Ali
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamilUmar Ali
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trendsUmar Ali
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1 Umar Ali
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1 Umar Ali
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search enginesUmar Ali
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1Umar Ali
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1Umar Ali
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1Umar Ali
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences ListUmar Ali
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlightUmar Ali
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#Umar Ali
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templatesUmar Ali
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerableUmar Ali
 
Differences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsDifferences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsUmar Ali
 
Ruby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcRuby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcUmar Ali
 
Spring vs. asp.net mvc
Spring vs. asp.net mvcSpring vs. asp.net mvc
Spring vs. asp.net mvcUmar Ali
 

More from Umar Ali (20)

Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 
.NET Differences List
.NET Differences List.NET Differences List
.NET Differences List
 
Difference between ajax and silverlight
Difference between ajax and silverlightDifference between ajax and silverlight
Difference between ajax and silverlight
 
Difference between is and as operators in c#
Difference between is and as operators in c#Difference between is and as operators in c#
Difference between is and as operators in c#
 
Difference between c# generics and c++ templates
Difference between c# generics and c++ templatesDifference between c# generics and c++ templates
Difference between c# generics and c++ templates
 
Var vs iEnumerable
Var vs iEnumerableVar vs iEnumerable
Var vs iEnumerable
 
Differences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methodsDifferences between get children() and getdescendants() methods
Differences between get children() and getdescendants() methods
 
Ruby on rails vs asp.net mvc
Ruby on rails vs asp.net mvcRuby on rails vs asp.net mvc
Ruby on rails vs asp.net mvc
 
Spring vs. asp.net mvc
Spring vs. asp.net mvcSpring vs. asp.net mvc
Spring vs. asp.net mvc
 

Difference between proxy and channel factory in wcf

  • 1. Difference between Proxy and Channel Factory in WCF S.No Proxy Channel Factory 1 What is the prerequisite for Proxy ? Only require URL where the service resides . What is the prerequisite for Channel Factory ? We must have direct access to the assembly that contains that service contract 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 us add the reference. How to use Channel Factory ? When we share a common service contract dll between the client and the server, we will be using the ChannelFactory class. 5 When we will go for Proxy ? If we know that our entities will change much and the client code is more, then we need to go for Proxy. Proxy has following limitations, 1. Properties need to have gets and sets 2. Constructors cannot be exposed 3. Methods other than the service contract cannot be exposed When we will go for Channel Factory ? If we know that our entities will not change much and the client code is less, then a DLL would work better than a Proxy.
  • 2. 6 How to create Proxy ? By using SVCutil.exe we will create PRoxy How to create Channel Factory ? When we are using DLL that refers Service contract interface then use the channel factory class References: http://www.sujitbhujbal.com/2012/03/difference-between-proxy-and-channel.html http://www.codeproject.com/Tips/558163/Difference-between-Proxy-and-Channel-Factory- in-WC