WCF约束名称的用法

<!--<endpoint address=""
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISupplierServiceContract"
contract="SupplierSR.ISupplierServiceContract"
name="BasicHttpBinding_ISupplierServiceContract" />-->


<endpoint address="http://hotel3:9000/WCF/com.eLong.Hotel.Product.Services/SupplierService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISupplierServiceContract"
contract="HotelSupplierInfoService.ISupplierServiceContract"
name="BasicHttpBinding_ISupplierServiceContract" />

这个2个配置有多大区别呢。address有区别,其他的呢。

contract 值有区别,name是一致的,看来很难找的。

这个WCF接口在2个sultion中都有。

同时,在一个接口里,调用会出错。

posted @ 2015-01-30 14:52  小毛驴  阅读(207)  评论(0编辑  收藏  举报