2011-05-12 47 views
2

お願いします、お願いします、お願いします! :-)WCFとSSL - エンドポイントが見つかりませんでしたエラー404

私はSSLでWCFをテストしようとしていますが、何かが欠けているようです。私は検索のトンをしていると私は設定で行方不明を見つけることができないようです。 Windows 7のIISにホストされている基本的なWCFサービスが自己署名入りの証明書を持っています。また、WCFサービスを呼び出すテストクライアントのWebアプリケーションもあります。

私は、テストクライアントで次のエラーを取得しています:私は、ブラウザ内のサービスに移動して、SOAPサービスのための標準的な自動生成されたページを取得することができます

There was no endpoint listening at https://<url>/WcfAuthTest/Service1.svc that could accept the message. 

。ここで

は、WCFサービスのための設定です:

<system.serviceModel> 
<bindings> 
    <wsHttpBinding> 
    <binding name="wsSecureBinding"> 
     <security mode="Transport"> 
     <transport clientCredentialType="None" /> 
     </security> 
    </binding> 
    </wsHttpBinding> 
</bindings> 

<behaviors> 
    <serviceBehaviors> 
    <behavior name="wsSecureBehavior"> 
     <serviceMetadata httpGetEnabled="true" /> 
     <serviceDebug includeExceptionDetailInFaults="true" /> 
    </behavior> 
    <behavior name=""> 
     <serviceMetadata httpGetEnabled="true" /> 
     <serviceDebug includeExceptionDetailInFaults="false" /> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 

<services> 
    <service behaviorConfiguration="wsSecureBehavior" name="Service1"> 
    <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsSecureBinding" name="wsService1" contract="WcfAuthTest.IService1" /> 
    <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration="" name="MexHttpsBindingEndpoint" contract="IMetadataExchange" /> 
    </service> 
</services> 

<serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 

クライアントの設定は次のとおりです。

<system.serviceModel> 
<bindings> 
    <wsHttpBinding> 
    <binding name="wsTestBinding" 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="Transport"> 
     <transport clientCredentialType="None" proxyCredentialType="None" 
      realm="" /> 
     </security> 
    </binding> 
    </wsHttpBinding> 
</bindings> 
<client> 
    <endpoint address="https://<url>/WcfAuthTest/Service1.svc" 
    binding="wsHttpBinding" bindingConfiguration="wsTestBinding" 
    contract="ServiceReference1.IService1" name="wsTestBinding" /> 
</client> 

答えて

0

あなたが尋ねたので、こんにちは、私はそのはしばらくして知っていますこの質問。

私はWCFとSSLで同様の問題があり、すぐ隣に得るために私を有効にこのプロパティを設定するサービスの行動にhttpsGetEnabled =「true」を

のプロパティを設定することによって、あなたの問題を解決するかもしれないと思っています問題:)

0

あなたの設定の終わりの段階では、あなたが持っている:それは起動しますが、決して終わらないよう

<endpoint address="https://<url>/WcfAuthTest/Service1.svc" 
binding="wsHttpBinding" bindingConfiguration="wsTestBinding" 
contract="ServiceReference1.IService1" name="wsTestBinding" /> 

<url>が見えます。

関連する問題