【问题标题】:Eclipse doesn't save the Endpoint Template with parametersEclipse 不保存带有参数的端点模板
【发布时间】:2015-03-30 16:00:24
【问题描述】:

我试图利用 WSO2 ESB 的端点模板功能,并正在从 Eclipse 开发模板。

我在编写代码时遇到了一些问题。该模板适用于 uri 部分,但是当我尝试为某些超时设置参数化它时,eclipse 不接受它。如果我关闭模板并再次打开它,它会删除所有参数..

下面的例子..

<?xml version="1.0" encoding="UTF-8"?>
<template name="TestTemplate" xmlns="http://ws.apache.org/ns/synapse">
<endpoint name="$name">
    <address format="soap11" uri="$uri"/>
    <parameter name="timeOutDurationParam"/>
    <parameter name="responseActionParam"/>
    <parameter name="errorCodesParam"/>
    <parameter name="initialDurationParam"/>
    <parameter name="maximumDurationParam"/>
    <parameter name="progressionFactorParam"/>
    <timeout>
        <duration>$timeOutDurationParam</duration>
        <responseAction>$responseActionParam</responseAction>
    </timeout>
    <suspendOnFailure>
        <errorCodes>$errorCodesParam</errorCodes>
        <initialDuration>$initialDurationParam</initialDuration>
        <progressionFactor>$progressionFactor</progressionFactor>
        <maximumDuration>$maximumDurationParam</maximumDuration>
    </suspendOnFailure>
    <markForSuspension>
        <errorCodes>$errorCodesParam</errorCodes>
    </markForSuspension>
</endpoint>

当我保存上面的模板时,关闭它并在 Eclipse 中再次打开它,所有参数都被删除了,下面是剩下的

<?xml version="1.0" encoding="UTF-8"?>
<template name="TestTemplate" xmlns="http://ws.apache.org/ns/synapse">
<endpoint name="$name">
    <address format="soap11" uri="$uri"/>
</endpoint>
</template>

如果我在这里做错了什么,或者我需要在 Eclipse 中设置什么设置,请提出建议?

我使用的eclipse版本是

谢谢 克兰蒂

【问题讨论】:

    标签: eclipse wso2esb endpoint


    【解决方案1】:

    WSO2 确认此问题是截至 2015 年 4 月 2 日当前 eclipse /wso2 插件中的一个错误。

    他们将在今年夏天发布一个新版本来解决这个问题..

    继续等待..

    谢谢 克兰蒂

    【讨论】:

      猜你喜欢
      • 2014-09-08
      • 2015-08-04
      • 2016-04-16
      • 1970-01-01
      • 2011-08-25
      • 1970-01-01
      • 2012-01-20
      • 1970-01-01
      相关资源
      最近更新 更多