WCFサービスをHTTPSで実行しました。情報ページが表示されますが、「このサービスをテストするには、次の構文で...」の下のURLは次のとおりです。
svcutil.exe https://servername.group.service.com/MyService.svc?wsdl
(サーバーの完全なアドレス)
正しいURLhttps ://my.service.com/MyService.svc ?wsdl(割り当てられたホストヘッダー)の代わりに、正しいURL ()を表示するにはどうすればよい<URL of the Service> + ?wsdl
ですか?
<services>
<service name="MyService" behaviorConfiguration="MyServer.MyServiceBehavior">
<endpoint binding="basicHttpBinding" bindingConfiguration="basicHttpBigStrings" contract="IMyService">
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyService.MyServiceBehavior">
<serviceCredentials>
<serviceCertificate findValue="my.service.com" x509FindType="FindBySubjectName"/>
</serviceCredentials>
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="basicHttpBigStrings">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
<readerQuotas maxStringContentLength="1048576" />
</binding>
</basicHttpBinding>
</bindings>
私はすでにに変更しようとし<serviceMetadata httpsGetEnabled="true"/>
ましたが、「URIhttps ://my.service.com/MyService.svc<serviceMetadata httpsGetEnabled="true" httpsGetUrl="https://my.service.com/MyService.svc"/>
の登録はすでに存在します」とだけ表示されます。