我将 WCF 服务引用添加到我的 web 应用程序中,以下条目被创建到我的 web.config 中。
<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 服务?ServiceConfig 中的实际条目是什么,以便我的应用程序将从服务配置而不是从 web.config 读取我的 WCF 端点地址