2011-07-27 162 views
0

這裏是我的W¯¯CF web服務的我的配置文件:託管WCF IIS7上

<services> 
    <service behavior Configuration="METADATASERVICEEXTENSION" name="namespace.MYwebServiceclass"> 
    <endpoint address="" behaviorConfiguration="" binding="ws2007HttpBinding" 
     binding Configuration="xxx" name="xxx" contract="IMyWebService"> 
     <identity> 
     <dns value="" /> 
     <certificateReference yyyyyy="xxxxxx" find Value="" 
      ISCHAINincluded="false" /> 
     </identity> 
    </endpoint> 
    <endpoint address="mex" binding="mexHttpBinding" binding Configuration="" 
     name="Metadata Exchange" contract="IMetadataExchange" /> 
    </service> 
</services> 

我收到以下錯誤:找不到與綁定WS2007HttpBinding端點符合計劃http的基址。註冊的基地址方案是[HTTPS]。 - 我已將此服務配置爲HTTPS:443,對我的web配置進行的任何更改?

這裏是我的結合部分:

<bindings> 
    <ws2007HttpBinding> 
    <binding name="xxxxx"> 
     <security mode="None"> 
     <transport clientCredentialType="None" /> 
     <message clientCredentialType="None" negotiateServiceCredential="false" 
      establishSecurityContext="false" /> 
     </security> 
    </binding> 
    </ws2007HttpBinding> 
</bindings> 
+0

你能告訴你的綁定綁定部分? – Tim

+0

您的綁定配置丟失。 –

+0

它現在顯示! – user834675

回答

1

嘗試設置在安全元件爲如下方式:

<security mode="transport"> 
+0

我試過了,我仍然看到相同的錯誤。 – user834675