I have a MyService
class implementing IService1
and IService2
interfaces. I would like to expose these two contracts on two separate e
You can just use a service with two endpoints, like this:
<services>
<service name="MyNamespace.MyService">
<endpoint address="/Service/S1"
binding="basicHttpBinding"
contract="IService1" />
<endpoint address="/Service/S2"
binding="basicHttpBinding"
contract="IService2 " />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080/"/>
</baseAddresses>
</host>
</service>
</services>
EDIT: Added base address
Try this....
<services>
<service name="Service">
<endpoint address="http://localhost:8080/Service/S1"
binding="basicHttpBinding"
contract="IService1"
/>
<endpoint address="http://localhost:8080/Service/S2"
binding="basicHttpBinding"
contract="IService2 "
/>
</service>
</services>