【发布时间】:2023-03-30 03:46:01
【问题描述】:
我是 WSO2 ESB 的新手。我想创建一个 API,我想在文档之后添加一个端点 URL(我知道有更简单的方法,但这是我想测试遵循的,因为我已经测试了其他方法): https://docs.wso2.com/display/EI6xx/Injecting+Parameters+using+a+file 我一步一步地按照文档进行操作......但错误如下:
错误 - ClientUtils 系统无法从 $FILE:test URL 推断传输信息。 错误 - Axis2Sender 发送消息期间出现意外错误 org.apache.axis2.AxisFault:系统无法从 $FILE:test URL 推断传输信息。
[调用ep的代码]:
<call blocking="true">
<endpoint key="test-ep"/>
</call>
[代码 ep]:
<?xml version="1.0" encoding="UTF-8"?>
<endpoint name="test-ep" xmlns="http://ws.apache.org/ns/synapse">
<address uri="$FILE:test">
<enableSec/>
<timeout>
<duration>600000</duration>
<responseAction>fault</responseAction>
</timeout>
<suspendOnFailure>
<errorCodes>-1</errorCodes>
<initialDuration>0</initialDuration>
<progressionFactor>1.0</progressionFactor>
<maximumDuration>0</maximumDuration>
</suspendOnFailure>
<markForSuspension>
<errorCodes>-1</errorCodes>`enter code here`
</markForSuspension>
</address>
</endpoint>
[file.properties 在 carbon home 和 integrator.bat 中如何设置文档]:
test=http://localhost:8280/services/document
【问题讨论】:
-
问题已经解决,我的积分器版本太旧(6.4.0),这个功能不起作用。现在我使用 6.6.0 的 wso2 集成器,它作为文档工作
标签: wso2 wso2esb endpoint integrator