小编mad*_*dhu的帖子

405 error{"Message":"The requested resource does not support http method 'GET'."}

I am using the following code in my interface and using webapi service.

[OperationContract]
[WebInvoke(Method = "GET")]
bool IsPaymentGatewayExitsForTenant(string tenantSlugName, string productCode);
Run Code Online (Sandbox Code Playgroud)

I am running locally and testing the service using rest client

api/PaymentGatewayService/IsPaymentGatewayExitsForTenant?tenantSlugName=KPN&productCode=POSS
Run Code Online (Sandbox Code Playgroud)

But I am getting the following errror enter code here

{"Message":"The requested resource does not support http method 'GET'."} `enter code here`
Run Code Online (Sandbox Code Playgroud)

Any help would be appeciated.

asp.net-web-api

2
推荐指数
1
解决办法
1691
查看次数

标签 统计

asp.net-web-api ×1