您的位置:首页 > 其它

Wcf 可以公网访问的配置文件

2008-11-18 11:43 495 查看
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="WcfTest.Service1Behavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<services>
<service behaviorConfiguration="WcfTest.Service1Behavior" name="WcfTest.Service1">
<!-- 这里写IP -->
<endpoint address="http://xxx.xxx.xxx.xxx/interface/Service1.svc" binding="basicHttpBinding" contract="WcfTest.Service1"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

<host>
<baseAddresses>

<!-- 这里写IP -->
<add baseAddress="http://xxx.xxx.xxx.xxx/interface/" />
</baseAddresses>
</host>

</service>
</services>
</system.serviceModel>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐