2 つのエンドポイント (HTTP と HTTPS) をホストする Web ロールをセットアップしました。Main.svc
両方のエンドポイントが、 RESTful になるように構成された同じサービスを指しています。これは私の構成です(問題を引き起こしているのはHTTPSのみを示しています):
<services>
<service behaviorConfiguration="AthenaBehaviorConfigHttps" name="Athena.LEC.Service.Main">
<endpoint address="" behaviorConfiguration="AthenaBehaviorEndpointConfig"
binding="webHttpBinding" contract="Athena.LEC.Service.IMain" />
<endpoint binding="basicHttpBinding" bindingConfiguration="SecureBasic" name="basicHttpSecure" contract="Athena.LEC.Service.IMain" />
</service>
</services>
動作設定:
<behavior name="AthenaBehaviorConfigHttps">
<serviceMetadata httpsGetEnabled="true" httpsGetUrl="" httpGetEnabled="true" httpGetUrl="" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
基本的な http バインディング:
<basicHttpBinding>
<binding name="SecureBasic">
<security mode="Transport" />
</binding>
</basicHttpBinding>
Azure Web ロール構成:
<Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="HttpEndpoint" />
<Binding name="Endpoint2" endpointName="HttpsEndpoint" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="HttpEndpoint" protocol="http" port="7902" />
<InputEndpoint name="HttpsEndpoint" protocol="https" port="7955" />
</Endpoints>
HTTP では、安らかな呼び出しが成功したことを確認しました。ただし、ポート 7955 (Https として構成) では、ブラウザーを使用して呼び出しを行うと、空のページが表示されます (通常は JSON の結果が返されます)。これは正常ですか?または、何かを間違って設定していますか? ありがとう!