找不到具有绑定 WSHttpBinding 的终结点的与方案 http 匹配的基址。注册的基址方案是 []。

<configuration>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="com.xxx.PI.Config.Services.ConfigServiceBehavior">
          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://cs.xxx.com/ConfigService/metadata" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="com.xxx.PI.Config.Services.ConfigServiceBehavior" name="ConfigService">
        <endpoint address="http://cs.xxx.com/ConfigService/" binding="WSHttpBinding" contract="com.xxx.PI.Config.IServices.IConfigService" />
      </service>
    </services>
  </system.serviceModel>

</configuration>

明明都一样的

和服务契约中定义的都一样啊,为什么会报此错误啊

原文地址:https://www.cnblogs.com/goody9807/p/1839641.html