我將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