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>
<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>
相关文章推荐
- nginx 配置后网站图片或js 加载出来一半或者不出来刷新才可以,chrome 浏览器访问项目时加载大文件失败 ERR_CONTENT_LENGTH_MISMATCH:
- 如何配置nginx,从而可以访问网站根目录的文件
- Spring MVC框架下在java代码中访问applicationContext.xml文件中配置的文件(可以用于读取配置文件内容)
- 【网页访问单向、双向验证均可以】https原理及tomcat配置https方法[生成CA根证书配置tomcat后,若要成功访问axis中的webservice,需要配置它对应的axis2.xml文件]
- 在Asp.Net2.0中可以方便的访问配置文件web.config,如判断debug设置,验证类型等。
- WCF 自托管、无配置文件实现jsonp(跨域)的访问
- [导入]在Asp.Net2.0中可以方便的访问配置文件we...
- 在Asp.Net2.0中可以方便的访问配置文件web.config,如判断debug设置,验证类型等
- 在Asp.Net2.0中可以方便的访问配置文件web.config,如判断debug设置,验证类型等。
- WCF中可以使用SVCUtil.exe生成客户端代理类和配置文件
- 在Asp.Net2.0中可以方便的访问配置文件web.config
- 解决 Silverlight 调用 WCF 服务 跨域访问 和 Silverlight 引用服务后配置文件不加载的问题
- WCF 自托管、无配置文件实现jsonp(跨域)的访问
- 解决 Silverlight 调用 WCF 服务 跨域访问 和 Silverlight 引用服务后配置文件不加载的问题
- 解决 Silverlight 调用 WCF 服务 跨域访问 和 Silverlight 引用服务后配置文件不加载的问题
- wcf实现跨域访问所需的配置文件
- WCF中可以使用SVCUtil.exe生成客户端代理类和配置文件
- 【转】分享silverlight修改配置文件WEB.CONFIG指定服务器地址访问WCF
- iis中限制访问某个文件或某个类型的文件配置方法
- VirtualBox安装Centos,配置网络(主机可以通过SSH连接虚拟机系统,同时虚拟机系统可以访问外网)