0
我的方法的合同是这样的:WCF resful服务方法= “删除”
[OperationContract]
[WebInvoke(
Method = "DELETE", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = "/myMethod({myParametar})", BodyStyle = WebMessageBodyStyle.Bare
)]
void myMethod(string myParametar);
我这样称呼它:
http://localhost:1234/MyService.svc/jsonPS/myMethod(1)
,它说不准方法。 为什么?