【发布时间】:2012-02-14 17:58:13
【问题描述】:
我有一个关于 Host app.config 文件配置的基本问题
假设我在电脑上托管我的 WCF 服务,其 IP 为:123.456.789.001:9999
这是我的 app.config 文件:
<configuration>
<services>
<service name="Service.WebexClient" behaviorConfiguration="MyServiceTypeBehaviors" >
<host>
<baseAddresses>
<add baseAddress="http://<What should I put here>:9999/MyWebexService"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors" >
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceMetadata httpGetEnabled="true" httpGetUrl="http://<And What should I put here>:9999/MyWebexService/Help"/>
</behavior>
</serviceBehaviors>
</behaviors>
我想知道应该在 baseAddress 和 httpGetUrl 中插入哪些正确的参数。我很迷惑。我应该放“localhost”还是ip(123.456.789.001)?
【问题讨论】:
标签: c# wcf web-services host