Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
I am new to WCF so I read around the internet. I found (at least) 3 ways to make a WCF service, but I don't know the difference.
Using Channel Factory:
Using Service Reference:
Using svcutil to generate proxy for client:
What are the advantages/disadvantages of using each method?
8/22/2022 - Mon
- this is doing a small comparison also
I hope you are referring to consuming a Web Service.
1 SvcUtil and ServiceReference are same, in that ServiceReference internally uses SvcUtil to generatre proxy. But it gives a nice UI to do that, in case you are not comfortable with SvcUtil command line
2. SvcUtil is useful in automated build scenarios
3. you cannot use XmlSerializer with Service Reference, hence you have to use Svcutil in that case
4. ChannelFactory is not usable for non-wcf services
5. using ChannelFactory means you need to have binary level reference to the Service Contract
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
Still reading the links you provided. But the articles doesn't seem to answer by questions.
For starters, I will be working on TCP (and probably named pipes).
> SvcUtil and ServiceReference are same
SvcUtil.exe creates 2 files (proxy and app.config). Does that mean that I will need to manually regenerate the files every time there are changes to the service?
>. using ChannelFactory means you need to have binary level reference to the Service Contract
Does that mean that it is best to use the ChannelFactory if I have binary reference to the Service Contract?
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Follow-up question at:
Plans and Pricing
Certified Expert Program
© 1996-2023 Experts Exchange, LLC. All rights reserved. Covered by US Patent