[英]Method not allowed in wso2 esb
I need to add api service using wso2 api management or wso2 ei. 我需要使用wso2 api管理或wso2 ei添加api服务。 i have a web api with ip:port format that have response via postman but when i add web api in api manager or wso2 ei in api menu and call published api via postman i get this error method not allowed and in log i have this error : main sequence executed for call to non-existent = /CardTransfer/ my API Source :
我有一个具有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>
The request URL for the API resource you have created is: 您创建的API资源的请求URL为:
https://<ip>:<port>/CardTransfer
the forward slash end of the API context should be omitted. API上下文的正斜杠末尾应省略。
If the API resource contains a url-mapping="/"
, the request URL would be: 如果API资源包含
url-mapping="/"
,则请求URL将为:
https://<ip>:<port>/CardTransfer/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.