WebアプリケーションにWCF Servicereferenceを追加しました。次のエントリがweb.configに作成されました。Azure ServiceConfigからWCFサービスを呼び出す
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_INameVerification" 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="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="https://int. NameVerification.com/Default/NameVerificationService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_INameVerification"
contract="NameVerificationService.INameVerification"
name="WSHttpBinding_INameVerification" />
</client>
今私はAzureのクラウドプラットフォームに自分のアプリケーションをホストするために計画しています。私はいつでも すなわち。で私のエンドポイントを変更できるようにするクラウド上で自分のアプリケーションをホストすると 、
<endpoint address=”https://int. NameVerification.com/Default/NameVerificationService.svc”
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_INameVerification"
contract="NameVerificationService.INameVerification"
name="WSHttpBinding_INameVerification" />
にはどうすればSericeConfigから私のWCFサービスにこの呼び出しを追加しますか?実際entriessがで何ですかServiceConfigを使用して、アプリケーションが自分のWCFエンドポイントアドレスをWeb.configからではなくService configから読み込むようにします。
を追加しました.cscfg。パッケージがAzureに入ったら、私はe ServiceConfiguration.cscfgを実行し、私のアドレスを変更する= "https:// staging。 NameVerification.com/Default/NameVerificationService.svc " – amazing