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

  • Follow


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, 

0
Reply Ryan 8/1/2010 12:21:02 AM

On 7/31/2010 8:21 PM, Ryan Liu wrote:
> 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.

0
Reply Mr 8/1/2010 6:08:01 AM


1 Replies
232 Views

(page loaded in 0.078 seconds)

6/11/2014 11:31:40 PM


Reply: