【发布时间】: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版本是
谢谢 克兰蒂
【问题讨论】: