Multiple Contract Implementation

Topics: Service Factory Modeling Edition Forum
Dec 7, 2007 at 2:02 PM
Hello,

being new to WSSF I am wondering how to implement multiple services based on the same contract. We are developing generic interface contracts and want to provide different implementations for the different targets that can be plugged-in via configuration of the host. Clients would be unaware which service is plugged in and can be redirected by changing the host configuration.

Can this be done?

Thanks,
Karl
Dec 7, 2007 at 7:24 PM
I think what you can do is simply design your contract and assign it to one service element (you are only allowed a 1:1 mapping between Services & ServiceContracts) and then add in your implementation project your other service classes that will implement the same contract with different implementations.
This way you can have your contract and all its operations defined in your model and implemented in the apporpiate projects along with your additional service classes (not reflected in your model) but implementing the same contract as your model class.