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

后端 未结 7 894
借酒劲吻你
借酒劲吻你 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:02

    There is also a way to eliminate the physical .svc files altogether. This can be done with a VirtualPathProvider.

    See: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/350f2cb6-febd-4978-ae65-f79735d412db

提交回复
热议问题