【发布时间】:2016-04-08 03:34:20
【问题描述】:
wso2 api manager v1.10.0是否允许通过自定义顺序将请求的HTTP方法转换到后端?
我通过发布者 Web 控制台创建了一个带有 http GET 资源的 api。但由于端点仅支持 POST 方法,我尝试通过使用属性中介按顺序创建自定义来更改 HTTP 方法:
<property name="HTTP_METHOD" value="POST" scope="axis2"/>
但响应显示错误消息:
{
"fault": {
"code": 403,
"type": "Status report",
"message": "Fault Call",
"description": "No matching resource found in the API for the given request"
}
}
日志文件只显示这些行:
==> /opt/wso2am-gateway/repository/logs/wso2carbon.log <==
[2016-04-08 10:30:16,868] INFO - STATUS = Executing default 'fault' sequence, ERROR_CODE = 403, ERROR_MESSAGE = No matching resource found in the API for the given request {org.apache.synapse.mediators.builtin.LogMediator}
如果我删除属性中介,请求会通过并到达后端。
有人知道如何解决这个问题吗?
【问题讨论】: