WCF没有可以通过操作接受消息的频道

时间:2012-03-05 16:37:05

标签: wcf wcf-client

我收到此错误消息。没有可以通过操作接受消息的频道。

'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get'.

我在服务上启用了跟踪,从日志中我得到了这个。

我的服务器配置是:

<system.serviceModel>
      <behaviors>
   <serviceBehaviors>
    <behavior name="DCTTPIEngine.TPIWCFServiceBehavior">
     <serviceMetadata httpGetEnabled="true" />
     <serviceDebug includeExceptionDetailInFaults="false" />
      <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
    </behavior>
   </serviceBehaviors>
  </behaviors>
  <services>
   <service behaviorConfiguration="DCTTPIEngine.TPIWCFServiceBehavior"
    name="DCTTPIEngine.ServiceModel.TPI.XmlMessageService">
    <endpoint address="http://ws-lds-020:8080/DCTTPIEngine/TPIEngine" binding="wsHttpBinding" name="endPoint1"
     contract="DCTTPIEngine.ServiceModel.TPI.XmlServiceInterface" />
    <endpoint address="http://ws-lds-020:8080/DCTTPIEngine/TPIEngine/mex" binding="mexHttpBinding" name="MexEndPoint"
     contract="IMetadataExchange" />
    <host>
     <baseAddresses>
      <add baseAddress="http://ws-lds-020:8080/DCTTPIEngine/TPIEngine" />
     </baseAddresses>
    </host>
   </service>
  </services>
 </system.serviceModel>

我的客户端配置是:

 <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="WSHttpBinding_XmlServiceInterface" closeTimeout="00:01:00"
            openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
            bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
            maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
            messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
            allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
              maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00"
              enabled="false" />
          <security mode="Message">
            <transport clientCredentialType="Windows" proxyCredentialType="None"
                realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
                algorithmSuite="Default" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://ws-lds-020:8080/DCTTPIEngine/TPIEngine"
          binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_XmlServiceInterface"
          contract="XmlServiceInterface" name="WSHttpBinding_XmlServiceInterface">
        <identity>
          <userPrincipalName value="bahadur.shaik@minorplanet.local" />
        </identity>
      </endpoint>
    </client>
  </system.serviceModel>

任何人都可以帮助我吗?我试着看看这个问题。

0 个答案:

没有答案