我有一个MyService
类实现IService1
and IService2
接口。我想在两个不同的端点上公开这两个合约,例如:
-
IService1
暴露于/Service/S1
-
IService2
暴露于/Service/S2
这样的配置会是什么样子?
尝试这个....
<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>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)