我在我的界面中使用以下代码并使用webapi服务。405 error {“Message”:“请求的资源不支持http方法'GET'。”}
[OperationContract]
[WebInvoke(Method = "GET")]
bool IsPaymentGatewayExitsForTenant(string tenantSlugName, string productCode);
我在本地运行,并使用REST客户端
api/PaymentGatewayService/IsPaymentGatewayExitsForTenant?tenantSlugName=KPN&productCode=POSS
测试服务,但我得到以下errror enter code here
{"Message":"The requested resource does not support http method 'GET'."} `enter code here`
任何帮助将appeciated。
什么是基类的控制器?请再展示一些代码。 – Markus
@markus ApiController – madhu