Silverlightプロジェクトで使用しているWCFサービスがあります。私は、WCFサービスのためにhttpsとSSLを設定する方法に関する情報をかなり多く追ってきました。 SSLは必須ではないが、WCFサービスが依然としてhttpプロトコルであることをフィドラーとの通信を調べている間に気付いた場合、サービスは完全に正常に呼び出すことができます。さらに私がSSLを有効にすると、WCFサービスはブラウザでブラウズできなくなります(VS2010で右クリック - >ブラウズを選択)。HTTPS/SSLの下でWCFサービスが動作しない
私の疑惑は、サービスがまだhttpプロトコルを使用していくつかの内部メソッドで呼び出されていることです。
これを修正する方法の提案はありますか?
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
</compilation>
</system.web>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="AuthService.customBinding" >
<binaryMessageEncoding />
<httpsTransport />
</binding>
</customBinding>
</bindings>
<services>
<service name="AuthService">
<endpoint address="" binding="customBinding" bindingConfiguration="AuthService.customBinding" contract="AuthService" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
</configuration>
おかげ
カスタムバインディングを使用している理由については、具体的な理由があります。また、サービス名属性と契約属性は完全修飾名 – Rajesh
Rajeshでなければなりません。名前を完全修飾すると正しく動作します。サーバー側のコーディングとweb.configファイルに関してはかなり緑色です。 私はbasichttpbindingか多分wshttpbindingを使うべきですか?おそらく、WCF設定スキーマで読めないかもしれません。 感謝Rajesh、私は答えとしてあなたのコメントをマークしたいと思います。 – BrokenRobot
これは何の問題もなく、まだ動作していないことを意味しますか?それは、https – Rajesh