调用不存在的 wso2 esb 时执行的主序列

问题描述 投票:0回答:2

在调用我的服务时,我正在执行主序列以调用 WSO2 esb 中不存在的内容 http://10.16.69.102:8280/payfast/token 来自邮递员我已经尝试过 http://10.16.69.102:8280 /payfast/token/ 也一样,但没有用。有谁可以帮忙吗?

它的发布请求,我将请求发布到带有 x-www.form.urlencoded 正文的 URL (http://10.16.69.102:8280/payfast/token) 并在其中发送三个键值并收到错误 404 Not找到了,但是我在 WSo2 上设置的方法是使用正确的 URL(/payfast/token)发布的

wso2 sequence
2个回答
0
投票

如果您在 WSO2 ESB 中创建 API,如下所示,

<api xmlns="http://ws.apache.org/ns/synapse" name="test" context="/tests">
   <resource methods="POST" url-mapping="/custom/path" faultSequence="fault">
   ...
   </resource>
</api>

您的 API 网址将类似于: http://localhost/tests/custom/path

它是 API 中的 context 属性和 url-mapping 的串联。 第二种可能性是不声明 POST 方法,但我认为情况并非如此。

提供 API 代码的该部分,以便更好地了解问题背景。


0
投票

我遇到的问题是 API 名称与另一个名称重复,导致出现此错误

© www.soinside.com 2019 - 2024. All rights reserved.