How to remove the “.svc” extension in RESTful WCF service?

后端 未结 7 896
借酒劲吻你
借酒劲吻你 2020-11-29 17:41

In my knowledge, the RESTful WCF still has \".svc\" in its URL.

For example, if the service interface is like

[OperationContract]
[WebGet(UriTemplate         


        
相关标签:
7条回答
  • 2020-11-29 18:21

    Its easy on IIS 7 - use a URL Rewrite Module

    On IIS 6 I found its easiest to use the ISAPI Rewrite module which lets you define a set of regular expressions that map the request Urls to the .svc file...

    0 讨论(0)
提交回复
热议问题