WCF: why both <serivce> and <client> tag defines endpoint?

  • Thread starter Thread starter Ryan Liu
  • Start date Start date
R

Ryan Liu

Look at WCF configuration file, little bit teditious ,

On server side, why both <serivce> and <client> tag defines endpoints?

And both client and server side has <client> element. And are same.

So seems server side <client> is redudent.
---

Why is the resource best explain all those configurations? MSDN doc is too
brief.

Thanks,
 
Look at WCF configuration file, little bit teditious ,

On server side, why both <serivce> and <client> tag defines endpoints?

And both client and server side has <client> element. And are same.

So seems server side <client> is redudent.

No... the configs are not the same. And besides, it's a two way
communications and they have to be on the same page sort of speaking
with client/service configurations, and WCF is more than just Web
service communications.

It can do HTTP, TCP/IP, MSMQ and Named Pipe client/service
communications. So the configs pretty much have to be generic to deal
with all the various properties that can be set in a config file for a
WCF client/service.
 
Back
Top