0

我是 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>

[carbon home 中的file.properties 并在integrator.bat 中设置如何文档]:

test=http://localhost:8280/services/document
4

1 回答 1

0

每当您启动运行 integrator.bat 时,您都可以传递该位置。

例如:integrator.bat -Dproperties.file.path=您的位置(例如:D:\env_variables)\file.properties

一旦自动部署 .car 文件,它将用相应的值替换关键字

于 2020-12-08T19:23:48.307 回答