私は、web.config が次のような SSL(https) 経由でホストされている WCF サービスを持っています。
<system.serviceModel>
<services>
<service name="MyProject.HTMLService" behaviorConfiguration="HTMLServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="https://someip/HTMLService.svc"/>
<add baseAddress="https://hostname/HTMLService.svc"/>
</baseAddresses>
</host>
<endpoint address="" binding="webHttpBinding" bindingConfiguration="https" contract="MyProject.IHTMLService"/>
</service>
</services>
<bindings>
<webHttpBinding>
<binding name="https">
<security mode="Transport"/>
</binding>
</webHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="HTMLServiceBehavior">
<serviceMetadata httpsGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
ClientAccessPolicy.xml ファイル:
<?xml version="1.0" encoding="utf-8"?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers="*">
<domain uri="http://*"/>
<domain uri="https://*"/>
</allow-from>
<grant-to>
<resource path="/" include-subpaths="true"/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
Silverlight 4 アプリケーションにサービス参照を追加しようとすると、必要なファイルがすべて生成されますが、ServiceReferences.ClientConfig ファイルにはタグしか含まれていません。また、configuration.svcinfo および configuration91.svcinfo ファイルには、Bindinds、EndPoints、および Behavior 構成がありません。
この問題はどのように解決できますか? ありがとう..