I connect a WCF client to a group of services that execute the same contract and all on the same host. I was hoping there would be a way to combine endpoint definitions to reduce configuration clutter. I would also prefer not to do this programmatically - just by configuration. Now my configuration is repeated many times:
<endpoint address="http://hostname/ServiceA.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_MyBinding" contract="ServiceReference.ISearchService" name="ServiceA"> </endpoint> <endpoint address="http://hostname/ServiceB.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_MyBinding" contract="ServiceReference.ISearchService" name="ServiceB"> </endpoint> // continued for ServiceC, ServiceD, etc
For server configurations, there is some concept of "baseAddressPrefixFilters" that can be used for this purpose - is there something for client configuration?
WCF - , , , . NT. - . , .
IIS, , (, , ), *.svc, IIS. , , (.NET 4 ).