web config的serviceHostingEnvironment节点配置的作用,使生成的服务地址为localhost
Posted on 2012-09-27 14:21 zqwuwei 阅读(1564) 评论(0) 编辑 收藏 举报<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
...
</system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
...
</system.serviceModel>
没有加上面这句配置:
svcutil.exe http://${computer name}?8012/Service.svc?wsdl
加过之后:
svcutil.exe http://localhost:8012/Service.svc?wsdl