Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to expose multiple WCF services through a single endpoint?

Tags:

wcf

endpoint

I currently offer a service with many methods via WCF. I'd like to refactor so the single service is split into multiple classes, each offering a different set of functionality. However, I'd prefer to still have a single connection to the client. Is this possible?

I guess the answer is No, so how should I solve this issue? Is there a workaround? Or is my idea completely stupid and I should change the design of the application?

like image 779
mafu Avatar asked Mar 17 '10 09:03

mafu


1 Answers

Remember E = ABC (Endpoint = Address, Binding, Contract). With a different contract, even with all else equal, you've still got a different endpoint.

However, a single service can implement multiple service contracts. This would allow a single .svc file to be the target of several different service contracts, all configured as URLs relative to the .svc.

like image 113
John Saunders Avatar answered Sep 30 '22 05:09

John Saunders