wso2 esb中不允许使用的方法

时间:2018-08-14 15:02:49

标签: api wso2 wso2esb wso2-am wso2ei

我需要使用wso2 api管理或wso2 ei添加api服务。我有一个具有ip:port格式的Web api,可以通过邮递员进行响应,但是当我在api管理器中添加Web 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>

1 个答案:

答案 0 :(得分:1)

您创建的API资源的请求URL为:

https://<ip>:<port>/CardTransfer

API上下文的正斜杠末尾应省略。

如果API资源包含url-mapping="/",则请求URL为:

https://<ip>:<port>/CardTransfer/