无事先做题/答案使我一个完整的REST/WCF的解决方案,将删除服务的各个方面SVC扩展。从“?WSDL”和“/帮助” REST WCF服务删除.SVC仍处于启用状态
具体来说,我指的servicename/help
和servicename/wsdl
...但我知道这是可能的。 Here is a working example能够从/ help链接中删除WCF扩展的人员。另外,他还不能直接使用扩展名来调用.svc。看来,WSDL是不存在的(虽然我宁愿把这个)
如何让我的WCF REST的应用程序的行为更像是链接?
这里是IIS URL重写让我有一部分的方式。这看起来有点怪异,因为如果我没有第一次(两个)重写,那么Web服务会随机获得borked。
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<rewrite>
<rules>
<rule name="test1.svc" stopProcessing="true" >
<match url="^test1.svc(.*)$"/>
</rule>
<rule name="test1" stopProcessing="true" >
<match url="^test1(.*)$"/>
<action type="Rewrite" url="/test1.svc{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
@Stephen Patten - 我注意到你是SO用户。我会看看这个记载中你会看到这个帖子... – LamonteCristo 2011-05-06 01:54:20