wso2 esb 中不允许的方法
Method not allowed in wso2 esb
我需要使用 wso2 api 管理或 wso2 ei 添加 api 服务。我有一个 api 格式的 ip:port 网络,可以通过邮递员回复,但是当我在 api 管理器中添加网络 api 或在 api 菜单中添加 wso2 ei 并调用通过邮递员发布 api 我收到此错误
方法不允许,在日志中我有这个错误:主序列执行调用不存在 = /CardTransfer/
我的 API 来源:
<api xmlns="http://ws.apache.org/ns/synapse" name="NoorService" context="/CardTransfer" version="v1" version-type="url">
<resource methods="POST">
<inSequence>
<log level="full">
<property name="befor" value="befor"/>
</log>
<send>
<endpoint>
<http uri-template="http://x.x.x.x:9110/"/>
</endpoint>
</send>
<log level="full">
<property name="after" value="after"/>
</log>
</inSequence>
<outSequence>
<send/>
</outSequence>
</resource>
</api>
您创建的 API 资源的请求 URL 是:
https://<ip>:<port>/CardTransfer
应省略 API 上下文的正斜杠结尾。
如果 API 资源包含 url-mapping="/"
,请求 URL 将是:
https://<ip>:<port>/CardTransfer/
我需要使用 wso2 api 管理或 wso2 ei 添加 api 服务。我有一个 api 格式的 ip:port 网络,可以通过邮递员回复,但是当我在 api 管理器中添加网络 api 或在 api 菜单中添加 wso2 ei 并调用通过邮递员发布 api 我收到此错误 方法不允许,在日志中我有这个错误:主序列执行调用不存在 = /CardTransfer/ 我的 API 来源:
<api xmlns="http://ws.apache.org/ns/synapse" name="NoorService" context="/CardTransfer" version="v1" version-type="url">
<resource methods="POST">
<inSequence>
<log level="full">
<property name="befor" value="befor"/>
</log>
<send>
<endpoint>
<http uri-template="http://x.x.x.x:9110/"/>
</endpoint>
</send>
<log level="full">
<property name="after" value="after"/>
</log>
</inSequence>
<outSequence>
<send/>
</outSequence>
</resource>
</api>
您创建的 API 资源的请求 URL 是:
https://<ip>:<port>/CardTransfer
应省略 API 上下文的正斜杠结尾。
如果 API 资源包含 url-mapping="/"
,请求 URL 将是:
https://<ip>:<port>/CardTransfer/