我将WCF Servicereference添加到我的web应用程序中,以下条目已创建到我的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
我一直在寻找内部ServiceConfiguration确切的配置项.cscfg,这样一旦包装在Azure中,我就可以dit ServiceConfiguration.cscfg并更改我的地址=“https:// staging。 NameVerification.com/Default/NameVerificationService.svc” – amazing 2012-01-05 04:21:45