【发布时间】:2011-06-11 16:03:31
【问题描述】:
我在生产服务器的 IIS 中的 inetmgr 中托管了一个域/网站 (HTTR.abc.com)。 我想在域 HTTR.abc.com 下托管 WCF 服务 我的WCF服务的web.config如下
<services>
<service behaviorConfiguration="HTTR.Business.HTTRContextServiceBehavior" name="HTTR.Business.HTTRContextService">
<endpoint address="http://machinename:83/GTYEBus/abcService.svc" binding="wsHttpBinding" contract="HTTR.Business.IHTTRContextService">
</endpoint>
</service>
</services>
当我运行 URL “http://HTTR.abc.com/GTYEBus/abcService.svc”页面显示正确但它正在显示 WSDL 文件指向“http://machinename:83/GTYEBus/abcService.svc?WSDL”
我希望页面显示与 .svc 路径具有相同路径的 WSDL,即它应该显示为“http://HTTR.abc.com/GTYEBus/abcService.svc?WSDL”而不是 "http://machinename:83/GTYEBus/abcService.svc?WSDL"
【问题讨论】:
标签: wcf