我在生产服务器中的IIS中的inetmgr中托管域/网站(HTTR.abc.com)。 我想域HTTR.abc.com 我的WCF服务的Web.config是如下托管WCF服务时在svcutil中获取机器名称
<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下举办一个WCF服务。 com/GTYEBus/abcService.svc“页面显示正常,但显示为 WSDL文件指向”http:// machinename:83/GTYEBus/abcService.svc?WSDL“
我希望页面显示WSDL具有与.svc路径相同的路径,也就是说它应该显示为“http://HTTR.abc.com/GTYEBus/abcService.svc?WSDL”而不是 “http:// machinename:83/GTYEBus/abcService.svc?WSDL“