没有终结点在侦听可以接受消息的 这通常是由于不正确的地址或者 SOAP 操作导致的
这种错是服务端配置名称在客户端地址中没有写上。详细见配置:
服务端
<service behaviorConfiguration="ServiceBehavior" name="_9U55Service.ExamTheme">
<endpoint address="ws" binding="wsHttpBinding" bindingConfiguration="wb"
contract="_9U55Contracts.IExamTheme">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="basic" binding="basicHttpBinding" bindingConfiguration="bd"
contract="_9U55Contracts.IExamTheme" />
<host>
<baseAddresses>
<add baseAddress="http://wcf.9u55.com/Service.svc" />
</baseAddresses>
</host>
</service>
客户端
<client>
<endpoint address="http://wcf.9u55.com/Service.svc/ws" binding="wsHttpBinding"
bindingConfiguration="" contract="_9U55Contracts.IExamTheme"
name="WSHttpBinding_IExamTheme">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://wcf.9u55.com/Service.svc/basic" binding="basicHttpBinding"
bindingConfiguration="" contract="_9U55Contracts.IExamTheme"
name="BasicHttpBinding_IExamTheme" />
</client>