开发者

WCF REST Default UriTemplate

What is the default behavior with WCF Rest when I annotate a method with par开发者_StackOverflowameters with a WebGet attribute, but do not provide a UriTemplate? Is there a default behavior or does WCF just not respond to GET requests at all (which is what seems to be happening for me).


Default UriTemplate for operation marked with WebGet is: /OperationName?param1={value}&param2={value} etc. where param1 and param2 are names of first and second operation's parameter. You can check current uri of your operations by enabling help page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜