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中都有。

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

原文地址:https://www.cnblogs.com/wcLT/p/4262349.html